/* =========================================================
   SASEMS FACULTY REGISTER
   SAME STYLE AS STUDENT SIGNUP
========================================================= */


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;

    box-sizing: border-box;

    font-family:
        "Segoe UI",
        Tahoma,
        Geneva,
        Verdana,
        sans-serif;
}


/* =========================================================
   BODY
========================================================= */

body {
    width: 100vw;
    height: 100vh;

    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;

    background: #f3f3f3;
}


/* =========================================================
   BACKGROUND VIDEO
========================================================= */

#bg-video {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    z-index: -2;
}


/* =========================================================
   OVERLAY
========================================================= */

.blur-overlay {
    position: absolute;

    inset: 0;

    background: rgba(255, 255, 255, 0.18);

    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);

    z-index: -1;
}


/* =========================================================
   AUTH PANEL
========================================================= */

.auth-panel {
    width: 100%;

    max-width: 420px;

    max-height: 94vh;

    overflow-y: auto;

    padding: 34px 30px 24px;

    border-radius: 22px;

    background: rgba(255, 255, 255, 0.84);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border: 1px solid rgba(255, 255, 255, 0.65);

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.22);

    text-align: center;

    color: #111;

    display: flex;

    flex-direction: column;

    align-items: center;
}


/* =========================================================
   LOGO
========================================================= */

.main-logo {
    width: 78px;

    height: auto;

    margin-bottom: 16px;

    object-fit: contain;
}


/* =========================================================
   WELCOME
========================================================= */

.welcome-section {
    width: 100%;

    margin-bottom: 18px;
}

.welcome-section h1 {
    margin-bottom: 6px;

    color: #111;

    font-size: 1.6rem;

    font-weight: 700;
}

.welcome-section p {
    color: #555;

    font-size: 0.87rem;

    line-height: 1.5;
}


/* =========================================================
   MAIN TITLE
========================================================= */

.auth-panel > h2 {
    margin-bottom: 7px;

    color: #191919;

    font-size: 1.25rem;

    font-weight: 700;

    letter-spacing: 0.6px;
}


/* =========================================================
   RED LINE
========================================================= */

.red-line {
    width: 48px;
    height: 3px;

    margin: 0 auto 18px;

    border-radius: 20px;

    background: #c0392b;
}


/* =========================================================
   FORM
========================================================= */

#facultyRegForm {
    width: 100%;
}


/* =========================================================
   STEPS
========================================================= */

.step-section {
    width: 100%;
}

.hidden-step {
    display: none;
}


/* =========================================================
   STEP DESCRIPTION
========================================================= */

.step-description {
    width: 100%;

    margin-bottom: 18px;

    color: #555;

    font-size: 0.86rem;

    line-height: 1.5;
}


/* =========================================================
   STEP ICON
========================================================= */

.step-icon {
    width: 48px;
    height: 48px;

    margin: 0 auto 12px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(192, 57, 43, 0.10);

    color: #c0392b;

    font-size: 1.15rem;
}


/* =========================================================
   STEP TITLE
========================================================= */

.step-section h3 {
    margin-bottom: 7px;

    color: #191919;

    font-size: 1.18rem;

    font-weight: 700;

    letter-spacing: 0.3px;
}


/* =========================================================
   STEP RED LINE
========================================================= */

.step-red-line {
    width: 42px;
    height: 3px;

    margin: 0 auto 18px;

    border-radius: 20px;

    background: #c0392b;
}


/* =========================================================
   INPUT GROUP
========================================================= */

.input-group {
    width: 100%;

    position: relative;

    display: flex;
    align-items: center;

    margin-bottom: 14px;
}


/* =========================================================
   INPUT ICON
========================================================= */

.input-icon {
    position: absolute;

    left: 15px;

    color: #555;

    font-size: 0.95rem;

    pointer-events: none;

    z-index: 2;
}


/* =========================================================
   INPUT
========================================================= */

.input-group input,
.input-group select {
    width: 100%;

    height: 46px;

    padding: 0 44px;

    border: 1px solid rgba(0, 0, 0, 0.12);

    border-radius: 9px;

    outline: none;

    background: rgba(255, 255, 255, 0.65);

    color: #222;

    font-size: 0.92rem;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.input-group input::placeholder {
    color: #777;
}

.input-group input:focus,
.input-group select:focus {
    border-color: #c0392b;

    background: #fff;

    box-shadow:
        0 0 0 3px rgba(192, 57, 43, 0.10);
}


/* =========================================================
   SELECT
========================================================= */

.select-group {
    position: relative;
}

.input-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    cursor: pointer;
}

.select-arrow {
    position: absolute;

    right: 15px;

    color: #666;

    font-size: 0.75rem;

    pointer-events: none;
}


/* =========================================================
   PASSWORD TOGGLE
========================================================= */

.password-toggle {
    position: absolute;

    right: 15px;

    color: #666;

    font-size: 0.9rem;

    cursor: pointer;

    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: #c0392b;
}


/* =========================================================
   MAIN BUTTON
========================================================= */

.btn-main {
    width: 100%;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    border: none;

    border-radius: 9px;

    background: #c0392b;

    color: #fff;

    font-size: 0.9rem;

    font-weight: 700;

    letter-spacing: 0.3px;

    cursor: pointer;

    box-shadow:
        0 6px 16px rgba(192, 57, 43, 0.28);

    transition:
        background 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.2s ease;
}

.btn-main:hover {
    background: #a93226;

    box-shadow:
        0 8px 20px rgba(192, 57, 43, 0.35);
}

.btn-main:active {
    transform: scale(0.98);
}

.btn-main:disabled {
    opacity: 0.65;

    cursor: not-allowed;

    transform: none;
}


/* =========================================================
   BUTTON ROW
========================================================= */

.step-button-row {
    width: 100%;

    display: flex;

    gap: 9px;
}


/* =========================================================
   SECONDARY BUTTON
========================================================= */

.btn-secondary {
    flex: 0 0 31%;

    height: 46px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 6px;

    border: 1px solid rgba(0, 0, 0, 0.12);

    border-radius: 9px;

    background: rgba(255, 255, 255, 0.55);

    color: #444;

    font-size: 0.83rem;

    font-weight: 600;

    cursor: pointer;

    transition: 0.2s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.9);

    color: #c0392b;
}

.step-button-row .btn-main {
    flex: 1;
}


/* =========================================================
   OTP RESEND
========================================================= */

.resend-container {
    width: 100%;

    margin-top: 14px;

    margin-bottom: 2px;

    text-align: center;
}

.resend-container p {
    margin-bottom: 8px;

    color: #777;

    font-size: 0.78rem;

    line-height: 1.4;
}

#countdownText {
    color: #c0392b;

    font-weight: 600;
}

.resend-btn {
    min-width: 125px;

    height: 36px;

    padding: 0 14px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 6px;

    border: 1px solid #d8d8d8;

    border-radius: 8px;

    background: #f5f5f5;

    color: #777;

    font-size: 0.78rem;

    font-weight: 600;

    cursor: pointer;

    transition: 0.2s ease;
}

.resend-btn:disabled {
    opacity: 0.5;

    cursor: not-allowed;
}

.resend-btn:not(:disabled) {
    border-color: #c0392b;

    background: #fff;

    color: #c0392b;
}

.resend-btn:not(:disabled):hover {
    background: rgba(192, 57, 43, 0.08);
}


/* =========================================================
   PASSWORD NOTE
========================================================= */

.password-note {
    width: 100%;

    display: flex;

    align-items: center;

    gap: 7px;

    margin: -3px 0 15px;

    color: #777;

    font-size: 0.74rem;

    text-align: left;
}

.password-note i {
    color: #c0392b;

    flex-shrink: 0;
}


/* =========================================================
   SIGN IN SECTION
========================================================= */

.signin-section {
    width: 100%;

    margin-top: 21px;

    padding-top: 17px;

    border-top: 1px solid rgba(0, 0, 0, 0.10);

    text-align: center;
}

.signin-text {
    display: block;

    margin-bottom: 5px;

    color: #555;

    font-size: 0.81rem;
}

.signin-link {
    color: #c0392b;

    font-size: 0.83rem;

    font-weight: 700;

    text-decoration: none;

    transition: 0.2s ease;
}

.signin-link:hover {
    color: #a93226;

    text-decoration: underline;
}


/* =========================================================
   BACK TO HOME
========================================================= */

.btn-back {
    margin-top: 17px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 6px;

    color: #555;

    font-size: 0.82rem;

    font-weight: 600;

    text-decoration: none;

    transition: 0.2s ease;
}

.btn-back:hover {
    color: #c0392b;
}


/* =========================================================
   SWEETALERT
========================================================= */

.custom-swal-popup {
    border-radius: 16px !important;

    padding: 24px !important;
}

.custom-swal-title {
    color: #222 !important;
}

.custom-swal-text {
    color: #666 !important;
}

.custom-swal-btn {
    background: #c0392b !important;

    border-radius: 8px !important;

    font-weight: 600 !important;
}


/* =========================================================
   SCROLLBAR
========================================================= */

.auth-panel::-webkit-scrollbar {
    width: 6px;
}

.auth-panel::-webkit-scrollbar-track {
    background: transparent;
}

.auth-panel::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.18);

    border-radius: 10px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .auth-panel {
        width: calc(100% - 24px);

        max-width: 420px;

        max-height: 94vh;

        padding: 28px 20px 22px;

        border-radius: 18px;
    }

    .main-logo {
        width: 68px;

        margin-bottom: 12px;
    }

    .welcome-section h1 {
        font-size: 1.4rem;
    }

    .auth-panel > h2 {
        font-size: 1.12rem;
    }

    .step-section h3 {
        font-size: 1.08rem;
    }

    .step-button-row {
        gap: 8px;
    }

    .btn-secondary {
        flex-basis: 30%;
    }

    .terms-header-text p {
        font-size: 0.7rem;
    }

}