/* =========================================================
   TCCA STUDENT LOGIN MODAL
========================================================= */

.tcca-student-login-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.tcca-student-login-modal.active {
    display: flex;
}


/* =========================================================
   OVERLAY
========================================================= */

.tcca-student-login-overlay {
    position: absolute;
    inset: 0;
    background: rgba(12, 18, 10, 0.78);
    backdrop-filter: blur(6px);
}


/* =========================================================
   LOGIN DIALOG
========================================================= */

.tcca-student-login-dialog {
    position: relative;
    z-index: 2;
    width: 430px;
    background: #ffffff;
    border-radius: 16px;
    padding: 42px;
    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.35);
}


/* =========================================================
   CLOSE BUTTON
========================================================= */

.tcca-student-login-close {
    position: absolute;
    top: 17px;
    right: 17px;

    width: 38px;
    height: 38px;

    border: 0;
    border-radius: 50%;

    background: #f2f4f0;
    color: #333333;

    font-size: 25px;
    line-height: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.tcca-student-login-close:hover {
    background: #5c883d;
    color: #ffffff;
    transform: rotate(90deg);
}


/* =========================================================
   HEADER
========================================================= */

.tcca-student-login-header {
    text-align: center;
    margin-bottom: 30px;
}


/* TCCA badge */

.tcca-student-login-badge {
    width: 58px;
    height: 58px;

    margin: 0 auto 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #5c883d;
    color: #ffffff;

    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;

    box-shadow:
        0 10px 25px rgba(92, 136, 61, 0.25);
}


/* Eyebrow */

.tcca-student-login-eyebrow {
    display: block;

    margin-bottom: 7px;

    color: #5c883d;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 2px;
}


/* Heading */

.tcca-student-login-header h2 {
    margin: 0 0 10px;

    color: #222222;

    font-size: 30px;
    line-height: 1.2;
    font-weight: 700;
}


/* Description */

.tcca-student-login-header p {
    margin: 0 auto;

    max-width: 310px;

    color: #777777;

    font-size: 14px;
    line-height: 1.65;
}


/* =========================================================
   FORM
========================================================= */

.tcca-student-login-form {
    width: 100%;
}


/* Form group */

.tcca-login-form-group {
    margin-bottom: 19px;
}


/* Labels */

.tcca-login-form-group label {
    display: block;

    margin-bottom: 8px;

    color: #333333;

    font-size: 13px;
    font-weight: 600;
}


/* Inputs */

.tcca-login-form-group input {
    width: 100%;
    min-height: 50px;

    box-sizing: border-box;

    padding: 13px 15px;

    border: 1px solid #dddddd;
    border-radius: 8px;

    background: #ffffff;
    color: #222222;

    font-family: inherit;
    font-size: 14px;

    outline: none;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}


/* Input focus */

.tcca-login-form-group input:focus {
    border-color: #5c883d;

    background: #fcfefb;

    box-shadow:
        0 0 0 3px rgba(92, 136, 61, 0.12);
}


/* Placeholder */

.tcca-login-form-group input::placeholder {
    color: #aaaaaa;
}


/* =========================================================
   FORGOT PASSWORD
========================================================= */

.tcca-login-forgot {
    text-align: right;

    margin-top: -7px;
    margin-bottom: 22px;
}

.tcca-login-forgot a {
    color: #5c883d;

    font-size: 12px;
    font-weight: 600;

    text-decoration: none;

    transition: color 0.2s ease;
}

.tcca-login-forgot a:hover {
    color: #3f6429;
    text-decoration: underline;
}


/* =========================================================
   STATUS MESSAGE
========================================================= */

.tcca-student-login-status {
    display: none;

    margin-bottom: 18px;

    padding: 13px 15px;

    border-radius: 8px;

    background: #f4f8f1;
    border: 1px solid rgba(92, 136, 61, 0.22);

    color: #496d31;

    font-size: 13px;
    line-height: 1.55;

    text-align: center;
}

.tcca-student-login-status.active {
    display: block;
}
/* =========================================
   ERROR / NOT A STUDENT
========================================= */

.tcca-student-login-status.error {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    background: #fff1f1;
    border: 1px solid #e2a3a3;
    color: #b42323;

    font-weight: 600;
}

.tcca-student-login-status.error::before {
    content: "×";

    width: 20px;
    height: 20px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #c62828;
    color: #ffffff;

    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}

/* =========================================================
   ENTER CLASS BUTTON
========================================================= */

.tcca-student-login-submit {
    width: 100%;
    min-height: 52px;

    border: 0;
    border-radius: 8px;

    background: #5c883d;
    color: #ffffff;

    font-family: inherit;
    font-size: 14px;
    font-weight: 700;

    letter-spacing: 0.2px;

    cursor: pointer;

    box-shadow:
        0 8px 20px rgba(92, 136, 61, 0.22);

    transition:
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.tcca-student-login-submit:hover {
    background: #4d7433;

    transform: translateY(-2px);

    box-shadow:
        0 12px 25px rgba(92, 136, 61, 0.28);
}

.tcca-student-login-submit:active {
    transform: translateY(0);
}


/* =========================================================
   FOOTER
========================================================= */

.tcca-student-login-footer {
    margin-top: 28px;
    padding-top: 20px;

    border-top: 1px solid #eeeeee;

    text-align: center;

    font-size: 12px;
    color: #888888;
}

.tcca-student-login-footer a {
    margin-left: 5px;

    color: #5c883d;

    font-weight: 700;

    text-decoration: none;
}

.tcca-student-login-footer a:hover {
    text-decoration: underline;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 500px) {

    .tcca-student-login-modal {
        padding: 15px;
    }

    .tcca-student-login-dialog {
        width: 100%;
        padding: 35px 25px;
    }

    .tcca-student-login-header h2 {
        font-size: 27px;
    }

}
/* =========================================
   TCCA LOGO
========================================= */

.tcca-student-login-badge {
    width: 130px;
    height: auto;

    margin: 0 auto 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.tcca-student-login-badge img {
    width: 100%;
    height: auto;
    max-height: 75px;

    object-fit: contain;
    display: block;
}