/*--------------------------------------------------------------
# Auth Page Layout
--------------------------------------------------------------*/

html,
body {
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main {
    flex: 1 0 auto;
    display: block;
}

.auth-page {
    min-height: 100vh;
    padding-top: 124px;
    padding-bottom: 96px;
    background: radial-gradient(circle at top right, rgba(80, 197, 255, 0.08), transparent 24%), radial-gradient(circle at bottom left, rgba(80, 197, 255, 0.06), transparent 22%), #f8fafc;
}

.auth-shell {
    max-width: 1120px;
    margin: 0 auto;
}

.auth-shell-wide {
    max-width: 1180px;
    margin: 0 auto;
}

.auth-wrap {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    position: relative;
}

.auth-wrap::before {
    content: "";
    position: absolute;
    top: -90px;
    right: -70px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(80, 197, 255, 0.10), transparent 70%);
    pointer-events: none;
}


/*--------------------------------------------------------------
# Left Panel
--------------------------------------------------------------*/

.auth-side-col {
    min-height: 100%;
}

.auth-side {
    position: relative;
    height: 100%;
    min-height: 100%;
    padding: 42px 34px;
    background: linear-gradient(160deg, #101828 0%, #17263b 100%);
    color: rgba(255, 255, 255, 0.92);
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.auth-side::before,
.auth-side::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.auth-side::before {
    top: -90px;
    right: -70px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(80, 197, 255, 0.24), transparent 70%);
}

.auth-side::after {
    bottom: -100px;
    left: -80px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(80, 197, 255, 0.14), transparent 70%);
}

.auth-side-badge,
.auth-side h1,
.auth-side-text,
.auth-side-list,
.auth-side-note,
.auth-side-actions {
    position: relative;
    z-index: 1;
}

.auth-side-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    min-height: 36px;
    padding: 6px 12px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: rgba(80, 197, 255, 0.16);
    border: 1px solid rgba(80, 197, 255, 0.28);
    color: #e7f7ff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1;
}

.auth-side h1 {
    margin: 0 0 14px;
    font-size: clamp(2rem, 3.4vw, 2.45rem);
    font-weight: 800;
    line-height: 1.12;
    color: #ffffff;
    font-family: "Poppins", "Roboto", sans-serif;
}

.auth-side-text {
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.8;
    font-size: 0.96rem;
}

.auth-side-list {
    display: grid;
    gap: 14px;
    margin-bottom: 24px;
}

.auth-side-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.auth-side-item i {
    margin-top: 2px;
    color: #56b6e9;
    font-size: 1rem;
    flex: 0 0 auto;
}

.auth-side-item span {
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.68;
    font-size: 0.94rem;
}

.auth-side-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
    line-height: 1.65;
}

.auth-side-note i {
    margin-top: 2px;
    color: #56b6e9;
    flex: 0 0 auto;
}

.auth-side-actions {
    margin-top: 22px;
}

.auth-side-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 14px;
    border: 1px solid #ffffff;
    background: #ffffff;
    color: var(--heading-color);
    font-size: 0.94rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.18);
    transition: 0.25s ease;
}

.auth-side-btn:hover {
    background: #f8fafc;
    border-color: #f8fafc;
    color: var(--heading-color);
    transform: translateY(-1px);
}


/*--------------------------------------------------------------
# Right Panel
--------------------------------------------------------------*/

.auth-card {
    padding: 38px 34px;
    background: transparent;
    position: relative;
    z-index: 1;
}

.auth-card-head {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.auth-card-head-main {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    min-width: 0;
}

.auth-card-icon {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(80, 197, 255, 0.12);
    color: var(--accent-color);
    font-size: 1.15rem;
}

.auth-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
}

.auth-eyebrow {
    min-height: 32px;
    padding: 6px 11px;
    margin-bottom: 10px;
    background: rgba(80, 197, 255, 0.10);
    border: 1px solid rgba(80, 197, 255, 0.18);
    color: #1c5875;
    font-size: 0.72rem;
}

.auth-card-head h2 {
    margin: 0 0 8px;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--heading-color);
    line-height: 1.25;
    font-family: "Poppins", "Roboto", sans-serif;
}

.auth-card-head p {
    margin: 0;
    color: var(--default-color);
    line-height: 1.72;
    font-size: 0.95rem;
}

.auth-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: #ffffff;
    color: var(--heading-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: 0.25s ease;
}

.auth-back-btn:hover {
    background: var(--surface-muted);
    border-color: rgba(80, 197, 255, 0.18);
    color: var(--heading-color);
    transform: translateY(-1px);
}


/*--------------------------------------------------------------
# Form Elements
--------------------------------------------------------------*/

.auth-form {
    display: block;
}

.auth-label {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--heading-color);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.4;
}

.auth-label span {
    color: var(--danger-color, #dc3545);
}

.auth-input-wrap {
    display: flex;
    align-items: center;
    min-height: 52px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: #ffffff;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.auth-input-wrap:focus-within {
    border-color: rgba(80, 197, 255, 0.65);
    box-shadow: 0 0 0 4px rgba(80, 197, 255, 0.10);
}

.auth-input-wrap.auth-input-error {
    border-color: #dc3545;
}

.auth-input-wrap.auth-input-error:focus-within {
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.10);
}

.auth-input-wrap>i {
    width: 46px;
    flex: 0 0 46px;
    text-align: center;
    color: #98a2b3;
    font-size: 0.95rem;
}

.auth-input {
    width: 100%;
    min-height: 52px;
    padding: 0 14px 0 0;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--heading-color);
    font-size: 0.95rem;
}

.auth-input::placeholder {
    color: #98a2b3;
}

.auth-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

.auth-help-text {
    margin-top: 10px;
    color: var(--default-color);
    font-size: 0.88rem;
    line-height: 1.6;
}

.auth-help-text strong {
    color: var(--heading-color);
}


/*--------------------------------------------------------------
# Password Toggle
--------------------------------------------------------------*/

.auth-password-wrap .auth-input {
    padding-right: 0;
}

.auth-password-toggle {
    width: 46px;
    min-height: 52px;
    border: 0;
    background: transparent;
    color: #98a2b3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.25s ease;
}

.auth-password-toggle:hover {
    color: var(--accent-hover);
}

.auth-password-toggle:focus {
    outline: none;
}


/*--------------------------------------------------------------
# Buttons and Helper Text
--------------------------------------------------------------*/

.auth-actions {
    margin-top: 24px;
}

.auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 14px;
    border: 1px solid transparent;
    font-size: 0.94rem;
    font-weight: 600;
    white-space: nowrap;
    transition: 0.25s ease;
}

.auth-btn-primary {
    width: 100%;
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--contrast-color);
    box-shadow: 0 10px 24px rgba(80, 197, 255, 0.20);
}

.auth-btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--contrast-color);
    transform: translateY(-1px);
}

.auth-footer-text {
    margin-top: 18px;
    text-align: center;
    color: var(--default-color);
    font-size: 0.94rem;
    line-height: 1.7;
}

.auth-footer-text a,
.auth-inline-link,
.auth-switch-links a,
.auth-help-text a {
    color: var(--accent-hover);
    font-weight: 600;
    text-decoration: none;
    transition: 0.25s ease;
}

.auth-footer-text a:hover,
.auth-inline-link:hover,
.auth-switch-links a:hover,
.auth-help-text a:hover {
    color: var(--accent-color);
}


/*--------------------------------------------------------------
# Login Helpers
--------------------------------------------------------------*/

.auth-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 2px;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: var(--default-color);
    font-size: 0.92rem;
    font-weight: 500;
}

.auth-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent-color);
    cursor: pointer;
}

.auth-inline-link {
    font-size: 0.92rem;
}

.auth-link-btn {
    padding: 0;
    border: 0;
    background: transparent;
}


/*--------------------------------------------------------------
# Reset / Switch Links
--------------------------------------------------------------*/

.auth-switch-links {
    margin-top: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    text-align: center;
    font-size: 0.92rem;
}

.auth-switch-links a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.auth-switch-divider {
    color: #98a2b3;
}


/*--------------------------------------------------------------
# Forgot Password Modal
--------------------------------------------------------------*/

.auth-choice-modal .modal-dialog {
    max-width: 620px;
    padding: 16px;
}

.auth-modal-content {
    border: 1px solid var(--border-color);
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 24px 54px rgba(15, 23, 42, 0.10);
    overflow: hidden;
}

.auth-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 26px 26px 16px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.auth-modal-eyebrow {
    display: inline-block;
    margin-bottom: 6px;
    color: var(--accent-hover);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-modal-header h3 {
    margin: 0 0 8px;
    font-size: 1.32rem;
    font-weight: 700;
    color: var(--heading-color);
    line-height: 1.3;
}

.auth-modal-header p {
    margin: 0;
    color: var(--default-color);
    line-height: 1.7;
    font-size: 0.95rem;
}

.auth-modal-close {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: #ffffff;
    color: var(--heading-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.25s ease;
}

.auth-modal-close:hover {
    background: var(--surface-muted);
    border-color: rgba(80, 197, 255, 0.18);
}

.auth-modal-body {
    padding: 22px 26px 26px;
}

.auth-reset-options {
    display: grid;
    gap: 14px;
}

.auth-reset-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--border-color);
    background: #ffffff;
    text-decoration: none;
    transition: 0.25s ease;
}

.auth-reset-option:hover {
    border-color: rgba(80, 197, 255, 0.45);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    transform: translateY(-2px);
}

.auth-reset-option-featured {
    border-color: rgba(80, 197, 255, 0.30);
    background: linear-gradient(180deg, rgba(80, 197, 255, 0.06) 0%, #ffffff 100%);
}

.auth-reset-option-icon {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    border-radius: 16px;
    background: rgba(80, 197, 255, 0.12);
    color: var(--accent-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.auth-reset-option-content {
    min-width: 0;
    flex: 1 1 auto;
}

.auth-reset-option-top {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.auth-reset-option-content h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--heading-color);
    line-height: 1.35;
}

.auth-reset-option-content p {
    margin: 0;
    color: var(--default-color);
    font-size: 0.93rem;
    line-height: 1.7;
}

.auth-reset-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(80, 197, 255, 0.14);
    color: var(--accent-hover);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.auth-reset-option-arrow {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 12px;
    background: var(--surface-muted);
    color: var(--heading-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.25s ease;
}

.auth-reset-option:hover .auth-reset-option-arrow {
    background: rgba(80, 197, 255, 0.12);
    color: var(--accent-hover);
}


/*--------------------------------------------------------------
# OTP
--------------------------------------------------------------*/

.auth-otp-wrap {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.auth-otp-box {
    width: 100%;
    height: 58px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: #ffffff;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--heading-color);
    outline: none;
    transition: 0.25s ease;
}

.auth-otp-box:focus {
    border-color: rgba(80, 197, 255, 0.65);
    box-shadow: 0 0 0 4px rgba(80, 197, 255, 0.10);
}


/*--------------------------------------------------------------
# Large Screens
--------------------------------------------------------------*/

@media (max-width: 1199.98px) {
    .auth-page {
        padding-top: 116px;
        padding-bottom: 90px;
    }

    .auth-wrap {
        max-width: 760px;
        margin: 0 auto;
    }

    .auth-card {
        padding: 32px 28px;
    }
}


/*--------------------------------------------------------------
# Tablets
--------------------------------------------------------------*/

@media (max-width: 767.98px) {
    .auth-page {
        padding-top: 106px;
        padding-bottom: 82px;
    }

    .auth-wrap {
        border-radius: 22px;
    }

    .auth-card {
        padding: 24px 18px;
    }

    .auth-card-head {
        gap: 14px;
        margin-bottom: 20px;
    }

    .auth-card-head-main {
        gap: 14px;
    }

    .auth-card-icon {
        width: 52px;
        height: 52px;
        flex: 0 0 52px;
        border-radius: 14px;
        font-size: 1.05rem;
    }

    .auth-card-head h2 {
        font-size: 1.34rem;
    }

    .auth-card-head p,
    .auth-footer-text {
        font-size: 0.92rem;
    }

    .auth-label,
    .auth-input,
    .auth-btn {
        font-size: 0.9rem;
    }

    .auth-otp-wrap {
        gap: 8px;
    }

    .auth-otp-box {
        height: 52px;
        font-size: 1.02rem;
        border-radius: 12px;
    }
}


/*--------------------------------------------------------------
# Mobile
--------------------------------------------------------------*/

@media (max-width: 575.98px) {
    .auth-page {
        padding-top: 98px;
        padding-bottom: 76px;
    }

    .auth-wrap {
        border-radius: 18px;
    }

    .auth-card {
        padding: 20px 16px;
    }

    .auth-card-head {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 20px;
        padding-top: 50px;
    }

    .auth-card-head-main {
        gap: 12px;
        width: 100%;
    }

    .auth-back-btn {
        position: absolute;
        top: 0;
        right: 0;
        width: auto;
        min-height: 38px;
        padding: 0 12px;
        border-radius: 10px;
        font-size: 0.85rem;
    }

    .auth-card-head h2 {
        font-size: 1.2rem;
    }

    .auth-btn {
        min-height: 46px;
        font-size: 0.92rem;
    }

    .auth-meta-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .auth-help-text {
        font-size: 0.84rem;
    }

    .auth-switch-links {
        gap: 10px;
        font-size: 0.9rem;
    }

    .auth-choice-modal .modal-dialog {
        padding: 10px;
    }

    .auth-modal-header,
    .auth-modal-body {
        padding-left: 18px;
        padding-right: 18px;
    }

    .auth-modal-header {
        padding-top: 20px;
    }

    .auth-modal-body {
        padding-bottom: 20px;
    }

    .auth-modal-header h3 {
        font-size: 1.14rem;
    }

    .auth-reset-option {
        align-items: flex-start;
        padding: 16px;
    }

    .auth-reset-option-icon {
        width: 48px;
        height: 48px;
        flex: 0 0 48px;
        border-radius: 14px;
    }

    .auth-reset-option-arrow {
        display: none;
    }

    .auth-otp-wrap {
        gap: 7px;
    }

    .auth-otp-box {
        height: 48px;
        font-size: 0.98rem;
        border-radius: 10px;
    }

    .auth-eyebrow {
        font-size: 0.69rem;
    }
}

/*--------------------------------------------------------------
# Small Mobile
--------------------------------------------------------------*/

@media (max-width: 399.98px) {
    .auth-card-head {
        padding-top: 48px;
    }

    .auth-back-btn {
        width: 36px;
        min-height: 36px;
        padding: 0;
        border-radius: 10px;
    }

    .auth-back-btn span {
        display: none;
    }

    .auth-card-head-main {
        flex-direction: column;
    }

    .auth-card-icon {
        width: 48px;
        height: 48px;
        flex: 0 0 48px;
        border-radius: 14px;
    }

    .auth-otp-wrap {
        gap: 6px;
    }

    .auth-otp-box {
        height: 44px;
        font-size: 0.92rem;
    }
}