* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: Verdana, sans-serif;
    background-image: linear-gradient(rgba(35, 25, 75, 0.35), rgba(20, 15, 55, 0.50)), url('../images/designer.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Login Selection */

.selection-container {
    width: 420px;
    padding: 30px 32px;
    background: rgba(61, 56, 98, 0.97);
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.selection-container .login-header {
    margin-bottom: 25px;
}


/* Login Header */

.login-header {
    text-align: center;
    margin-bottom: 22px;
}

.login-header img {
    width: 76px;
    height: 76px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 50%;
    padding: 5px;
    margin-bottom: 10px;
}

.login-header h2 {
    margin: 0;
    color: #ffffff;
    font-size: 23px;
    font-weight: 700;
}

.login-header p {
    margin: 7px 0 0 0;
    color: #dedce5;
    font-size: 12px;
}


/* Login Selection Buttons */

.login-type-button {
    width: 100%;
    height: 45px;
    margin-top: 12px;
    border: none;
    border-radius: 7px;
    background: #5866d1;
    color: #ffffff;
    cursor: pointer;
    font-family: Verdana, sans-serif;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.login-type-button:hover {
    background: #5866d1;
}

.login-type-button:active {
    transform: scale(0.98);
}

.login-type-button i {
    margin-right: 8px;
}


/* Main Login Container */

.container {
    width: 420px;
    padding: 30px 32px 22px 32px;
    background: rgba(61, 56, 98, 0.97);
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}


/* Login Form Header */

.container .login-header {
    margin-bottom: 22px;
}

.container .login-header img {
    width: 76px;
    height: 76px;
}

.container .login-header h2 {
    color: #ffffff;
}

.container .login-header p {
    color: #dedce5;
}


/* Labels */

label {
    display: block;
    margin-top: 15px;
    margin-bottom: 7px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
}


/* Inputs */

input[type="text"],
input[type="password"] {
    width: 100%;
    height: 42px;
    padding: 0 13px;
    border: none;
    border-radius: 7px;
    outline: none;
    font-family: Verdana, sans-serif;
    font-size: 13px;
    background: #dedce3;
    color: #555555;
}

input[type="text"]::placeholder,
input[type="password"]::placeholder {
    color: #777777;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
}


/* Password */

.password-container {
    width: 100%;
    position: relative;
}

.password-container input {
    padding-right: 45px;
}

.toggle-password,
.toggle-candidate-password {
    position: absolute;
    right: 14px;
    top: 13px;
    color: #a6a3c5;
    cursor: pointer;
    font-size: 15px;
}

.toggle-password:hover,
.toggle-candidate-password:hover {
    color: #a6a3c5;
}


/* Error Message */

#errorMessage,
#candidateErrorMessage {
    min-height: 18px;
    margin-top: 5px;
    color: #ffb4b4;
    font-size: 11px;
    text-align: center;
}


/* Login Button */

input[type="submit"] {
    width: 100%;
    height: 42px;
    margin-top: 6px;
    border: none;
    border-radius: 7px;
    background: #25ad85;
    color: #ffffff;
    font-family: Verdana, sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

input[type="submit"]:hover {
    background: #25ad85;
}

input[type="submit"]:active {
    transform: scale(0.98);
}


/* OR Divider */

.or-divider {
    width: 100%;
    display: flex;
    align-items: center;
    margin: 17px 0 7px 0;
    color: #d8d5df;
    font-size: 10px;
}

.or-divider::before,
.or-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.22);
}

.or-divider span {
    padding: 0 11px;
}


/* Create Account */

.create-account-button {
    width: 100%;
    height: 42px;
    margin-top: 7px;
    border: none;
    border-radius: 7px;
    background: #5866d1;
    color: #ffffff;
    font-family: Verdana, sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.create-account-button:hover {
    background: #5866d1;
}

.create-account-button i {
    margin-right: 7px;
}


/* Back Button */

.back-button {
    width: 100%;
    height: 32px;
    margin-top: 7px;
    border: none;
    border-radius: 7px;
    background: transparent;
    color: #d7d5df;
    font-family: Verdana, sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-button:hover {
    color: #ffffff;
    background: transparent;
}

.back-button i {
    margin-right: 6px;
}

/* College Registration Popup */

.registration-popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 15, 55, 0.70);
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 20px;
}

.registration-popup-content {
    position: relative;
    width: 420px;
    max-width: 100%;
}

.registration-popup .register-container {
    width: 100%;
    background: rgba(45, 40, 85, 0.98);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid rgba(180, 170, 240, 0.35);
    box-shadow: 0 8px 25px rgba(35, 20, 80, 0.40);
}

.registration-close-button {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
    cursor: pointer;
    font-size: 15px;
    z-index: 10;
}

.registration-close-button:hover {
    background: rgba(255, 255, 255, 0.20);
}

.registration-popup .register-container h2 {
    text-align: center;
    color: #ffffff;
    margin: 0 0 25px 0;
    font-size: 25px;
}

.registration-popup .register-container h2::before {
    content: "\f19c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    display: block;
    width: 55px;
    height: 55px;
    line-height: 55px;
    margin: 0 auto 12px auto;
    border-radius: 14px;
    background: #263d70;
    color: #8ab4ff;
    font-size: 27px;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.25);
}

.registration-popup .register-container label {
    display: block;
    color: #d2cee5;
    margin-bottom: 7px;
    font-size: 14px;
}

.registration-popup .register-container label i {
    width: 20px;
    color: #8ab4ff;
    margin-right: 6px;
    text-align: center;
}

.registration-popup .register-container input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    margin-bottom: 18px;
    border: 1px solid rgba(180, 170, 240, 0.35);
    border-radius: 6px;
    background: rgba(225, 223, 235, 0.95);
    color: #302b55;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.registration-popup .register-container input::placeholder {
    color: #77738a;
}

.registration-popup .register-container input:focus {
    border-color: #5967d9;
    box-shadow: 0 0 0 2px rgba(89, 103, 217, 0.20);
    background: #ffffff;
}

.registration-popup .register-container input:disabled {
    background: rgba(225, 223, 235, 0.45);
    color: #77728f;
    cursor: not-allowed;
}

#registrationErrorMessage {
    color: #ff8f96;
    font-size: 13px;
    margin-bottom: 15px;
    text-align: center;
}

.registration-popup .create-button{
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    border: none;
    border-radius: 6px;
    color: #ffffff;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.registration-popup .create-button {
    background: #27b88a;
}

.registration-popup .create-button:hover {
    background: #20a579;
}

.registration-popup .create-button:disabled {
    background: #6b7280;
    color: #d1d5db;
    cursor: not-allowed;
    opacity: 0.7;
}

.registration-popup .back-button {
    background: #5967d9;
}

.registration-popup .back-button:hover {
    background: #4c59c4;
}

.registration-popup .back-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 44px;
    margin-top: 12px;
    padding: 0 15px;
    border: none;
    border-radius: 6px;
    background: #5967d9;
    color: #ffffff;
    font-family: Verdana, sans-serif;
    font-size: 14px;
    font-weight: normal;
    cursor: pointer;
    box-sizing: border-box;
}

.registration-popup .back-button:hover {
    background: #4d5bc4;
}

.registration-popup .back-button i {
    color: #ffffff;
    font-size: 14px;
}

@media (max-width: 600px) {

    .registration-popup {
        padding: 15px;
    }

    .registration-popup-content {
        width: 100%;
    }

    .registration-popup .register-container {
        padding: 25px;
    }

}

/* Responsive */

@media screen and (max-width: 600px) {

    .selection-container {
        width: 90%;
        padding: 28px 25px;
    }

    .container {
        width: 90%;
        padding: 28px 25px 20px 25px;
    }

}


@media screen and (max-height: 650px) {

    .container {
        padding-top: 18px;
        padding-bottom: 15px;
    }

    .container .login-header {
        margin-bottom: 12px;
    }

    .container .login-header img {
        width: 60px;
        height: 60px;
    }

    label {
        margin-top: 9px;
    }

    .or-divider {
        margin-top: 10px;
    }

}