* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #FFFFFF;
    color: #162447;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
}

button,
input,
select,
textarea {
    font-family: 'Poppins', sans-serif;
}

.login-page {
    width: 100%;
    overflow-x: hidden;
}

.login-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 853px;
}

.login-left {
    position: relative;
    min-height: 853px;
    overflow: hidden;
}

.login-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.login-left-overlay {
    position: absolute;
    inset: 0;
    background: rgba(46, 177, 247, 0.2);
}

.login-right {
    background: #FFFFFF;
    padding: 60px 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-panel {
    width: 100%;
    max-width: 520px;
    display: none;
}

.auth-panel.active {
    display: block;
}

.auth-panel h1 {
    font-weight: 700;
    font-size: 42px;
    line-height: 1.2;
    color: #162447;
    margin-bottom: 6px;
}

.auth-subtitle {
    font-weight: 400;
    font-size: 15px;
    line-height: 22px;
    color: #162447;
    margin-bottom: 32px;
}

.role-label {
    font-weight: 400;
    font-size: 12px;
    line-height: 18px;
    color: rgba(22, 36, 71, 0.97);
    margin-bottom: 8px;
}

.second-label {
    margin-top: 2px;
    margin-bottom: 8px;
}

.role-switch {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.role-card {
    width: 234px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: #F6F6F6;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    cursor: pointer;
    transition: 0.2s ease;
    color: #162447;
}

.role-card.active {
    background: #DCF3FF;
    border-color: #2EB1F7;
}

.role-icon {
    width: 16px;
    min-width: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.role-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}

.role-text strong {
    font-weight: 500;
    font-size: 15px;
    line-height: 18px;
    color: #162447;
}

.role-text small {
    font-weight: 300;
    font-size: 9px;
    line-height: 12px;
    color: #162447;
}

.staff-role-wrapper {
    display: none;
    margin-bottom: 10px;
}

.staff-role-wrapper.show {
    display: block;
}

.staff-role-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    margin-bottom: 10px;
}

.staff-role-card {
    width: 100%;
    height: 37px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: #F6F6F6;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    cursor: pointer;
    transition: 0.2s ease;
    color: #162447;
}

.staff-role-card.active {
    background: #DCF3FF;
    border-color: #2EB1F7;
}

.staff-role-icon {
    width: 16px;
    min-width: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.staff-role-name {
    font-weight: 500;
    font-size: 15px;
    line-height: 18px;
    color: #162447;
}

.auth-panel form label:not(.remember-me) {
    display: block;
    font-weight: 500;
    font-size: 13px;
    line-height: 18px;
    color: #162447;
    margin-bottom: 6px;
}

.login-form label {
    display: block;
    font-weight: 400;
    font-size: 12px;
    line-height: 18px;
    color: #162447;
    margin-bottom: 4px;
}

.input-wrap {
    position: relative;
    margin-bottom: 16px;
}

.input-wrap input {
    width: 100%;
    height: 48px;
    border: 1.5px solid rgba(22, 36, 71, 0.4);
    border-radius: 10px;
    background: #FAFAFA;
    padding: 0 44px 0 42px;
    font-weight: 400;
    font-size: 14px;
    line-height: 48px;
    color: #162447;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.input-wrap input:focus {
    border-color: #2EB1F7;
    box-shadow: 0 0 0 3px rgba(46, 177, 247, 0.12);
    background: #fff;
}

.input-wrap input::placeholder {
    color: #B5B5B5;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #8fa3c0;
    font-size: 15px;
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #8fa3c0;
    cursor: pointer;
    font-size: 15px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 4px 0 24px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    font-size: 13px;
    line-height: 18px;
    color: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.remember-me input {
    width: 14px;
    height: 14px;
    accent-color: #2EB1F7;
}

.forgot-link {
    font-weight: 500;
    font-size: 13px;
    line-height: 18px;
    color: #2EB1F7;
}

.continue-btn,
.verify-btn {
    width: 100%;
    height: 50px;
    border-radius: 10px;
    border: none;
    background: #2EB1F7;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(46, 177, 247, 0.35);
}

.continue-btn:hover,
.verify-btn:hover {
    background: #1a9de0;
    box-shadow: 0 6px 20px rgba(46, 177, 247, 0.45);
}

.continue-btn:active,
.verify-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(46, 177, 247, 0.3);
}

.signup-text {
    margin-top: 20px;
    font-weight: 400;
    font-size: 13px;
    line-height: 18px;
    text-align: center;
    color: rgba(0, 0, 0, 0.6);
}

.signup-text a {
    color: #2EB1F7;
    font-weight: 600;
}

.otp-panel {
    max-width: 367px;
    padding-top: 22px;
}

.back-btn {
    background: transparent;
    border: none;
    color: #727171;
    font-weight: 400;
    font-size: 10px;
    line-height: 15px;
    cursor: pointer;
    margin-bottom: 12px;
}

.otp-badge {
    width: 43px;
    height: 43px;
    border-radius: 7px;
    background: #DCF3FF;
    color: #2EB1F7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 8px;
}

.otp-text {
    font-weight: 400;
    font-size: 13px;
    line-height: 20px;
    color: #162447;
    margin-bottom: 22px;
}

.otp-text span {
    display: block;
    font-weight: 600;
    color: #2EB1F7;
}

.otp-single-wrap {
    margin-bottom: 18px;
}

.otp-single-input {
    width: 100%;
    height: 48px;
    border-radius: 10px;
    border: 2px solid rgba(204, 204, 204, 0.97);
    background: rgba(246, 246, 246, 0.9);
    padding: 0 16px;
    font-size: 18px;
    color: #162447;
    outline: none;
    text-align: center;
    letter-spacing: 6px;
}

.otp-single-input:focus {
    border-color: #2EB1F7;
}

.resend-text {
    margin-top: 10px;
    text-align: center;
    font-weight: 400;
    font-size: 10px;
    line-height: 15px;
    color: #000000;
}

.resend-text a {
    color: #2EB1F7;
    font-weight: 500;
}

.otp-dev-note {
    margin-top: 12px;
    font-size: 12px;
    color: #162447;
    text-align: center;
}

.floating-alert {
    position: fixed;
    top: 120px;
    right: 24px;
    z-index: 9999;
    min-width: 280px;
    max-width: 360px;
    padding: 14px 18px;
    border-radius: 12px;
    background: #ffe3e3;
    color: #9b1c1c;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
    font-size: 13px;
    line-height: 20px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.35s ease;
}

.floating-alert.show {
    opacity: 1;
    transform: translateY(0);
}

.floating-alert.hide {
    opacity: 0;
    transform: translateY(-10px);
}

.footer {
    width: 100%;
    background: #162447;
    color: #FFFFFF;
    padding: 32px 40px 16px;
}

.footer-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 50px;
}

.footer-logo-section {
    flex: 1.3;
    min-width: 220px;
}

.footer-logo-section img {
    width: 271px;
    max-width: 100%;
    height: auto;
}

.social-icons {
    display: flex;
    gap: 14px;
    margin-top: 10px;
}

.social-icons a {
    color: #FFFFFF;
    font-size: 20px;
}

.footer-links,
.footer-contact,
.footer-visit {
    padding-top: 8px;
}

.footer-links {
    flex: 1;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #FFFFFF;
    font-weight: 400;
    font-size: 18px;
    line-height: 27px;
}

.footer-contact,
.footer-visit {
    flex: 1;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact h3,
.footer-visit h3 {
    font-weight: 700;
    font-size: 18px;
    line-height: 27px;
    color: #FFFFFF;
    margin-bottom: 4px;
}

.footer-contact p,
.footer-visit p {
    font-weight: 400;
    font-size: 18px;
    line-height: 27px;
    color: #FFFFFF;
}

.footer-copy {
    text-align: center;
    margin-top: 20px;
    font-weight: 400;
    font-size: 11px;
    line-height: 16px;
    color: #FFFFFF;
}

@media (max-width: 1200px) {
    .login-section {
        grid-template-columns: 1fr;
    }

    .login-left {
        min-height: 420px;
    }

    .login-right {
        padding: 60px 40px;
    }

    .footer-container {
        flex-wrap: wrap;
        gap: 32px;
    }

    .footer-logo-section,
    .footer-links,
    .footer-contact,
    .footer-visit {
        flex: 1 1 45%;
    }
}

@media (max-width: 768px) {
    .login-left {
        min-height: 320px;
    }

    .login-right {
        padding: 40px 20px;
    }

    .auth-panel,
    .otp-panel {
        max-width: 100%;
    }

    .auth-panel h1 {
        font-size: 30px;
        line-height: 1.3;
    }

    .role-switch,
    .staff-role-grid {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .role-card,
    .staff-role-card {
        width: 100%;
    }

    .floating-alert {
        right: 16px;
        left: 16px;
        min-width: unset;
        max-width: unset;
        top: 100px;
    }

    .footer {
        padding: 32px 16px 20px;
    }

    .footer-container {
        flex-direction: column;
        gap: 28px;
    }

    .footer-logo-section,
    .footer-links,
    .footer-contact,
    .footer-visit {
        width: 100%;
        min-width: unset;
    }

    .footer-logo-section img {
        width: 180px;
    }

    .footer-links a,
    .footer-contact h3,
    .footer-visit h3,
    .footer-contact p,
    .footer-visit p {
        font-size: 16px;
        line-height: 24px;
    }

    .footer-copy {
        margin-top: 24px;
        font-size: 10px;
        line-height: 15px;
    }
}