/* =========================================================
   Modern Login Page
========================================================= */

.login-modern-page {
    position: relative;
    min-height: calc(100vh - 86px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px 0 36px;
    overflow: hidden;
}

.login-modern-card {
    position: relative;
    width: 100%;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .90)),
        radial-gradient(circle at 20% 10%, rgba(255, 219, 175, .28), transparent 34%);
    border: 1px solid rgba(232, 225, 216, .95);
    border-radius: 30px;
    padding: 24px 18px 18px;
    box-shadow:
        0 22px 60px rgba(0, 60, 135, .12),
        0 8px 22px rgba(15, 23, 42, .06);
    animation: loginCardIn .55s ease-out both;
    z-index: 2;
}

.login-brand-area {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: loginFadeUp .6s ease-out both;
}

.login-logo-wrap {
    width: 118px;
    min-height: 82px;
    border-radius: 26px;
    background: #fff;
    border: 1px solid rgba(232, 225, 216, .9);
    box-shadow: 0 14px 32px rgba(0, 60, 135, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    margin-bottom: 16px;
    animation: logoFloat 3.2s ease-in-out infinite;
}

.login-logo {
    max-width: 100%;
    max-height: 62px;
    object-fit: contain;
}

.login-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--itb-persian-gem);
    background: rgba(0, 149, 146, .10);
    border: 1px solid rgba(0, 149, 146, .18);
    border-radius: 999px;
    padding: 6px 11px;
    font-family: "ITB-Roboto", "ITB-Yekan", Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
}

.login-brand-area h1 {
    margin: 0;
    font-size: 24px;
    line-height: 1.7;
    font-weight: 900;
    color: var(--text);
}

.login-brand-area p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 2;
    max-width: 360px;
}

.login-choice-grid.modern {
    margin-top: 24px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 13px;
}

.login-choice-card.modern-card {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 118px;
    border: 1px solid rgba(232, 225, 216, .95);
    background: #fff;
    border-radius: 24px;
    padding: 18px 16px;
    text-align: right;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
    display: grid;
    grid-template-columns: 54px 1fr;
    grid-template-rows: auto auto;
    column-gap: 14px;
    row-gap: 4px;
    align-items: center;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    animation: loginFadeUp .55s ease-out both;
    font-family: inherit !important;
}

.login-choice-card.modern-card:nth-child(1) {
    animation-delay: .12s;
}

.login-choice-card.modern-card:nth-child(2) {
    animation-delay: .22s;
}

.login-choice-card.modern-card::before {
    content: "";
    position: absolute;
    inset: auto -20% -60% auto;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    opacity: .12;
    transition: .22s ease;
}

.login-choice-card.otp-card::before {
    background: var(--itb-persian-gem);
}

.login-choice-card.password-card::before {
    background: var(--itb-saffron-flame);
}

.login-choice-card.modern-card:active {
    transform: scale(.985);
}

.login-choice-card.modern-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(15, 23, 42, .10);
    border-color: rgba(0, 60, 135, .16);
}

.login-choice-card.modern-card:hover::before {
    transform: scale(1.18);
    opacity: .18;
}

.login-choice-card.modern-card .login-choice-icon {
    grid-row: 1 / 3;
    width: 54px;
    height: 54px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(0, 60, 135, .10), rgba(0, 149, 146, .10));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 27px;
}

.login-choice-card.modern-card strong {
    font-size: 16px;
    color: var(--text);
    line-height: 1.7;
}

.login-choice-card.modern-card small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

.login-footer-note {
    margin-top: 18px;
    padding: 12px;
    background: rgba(247, 243, 236, .78);
    border: 1px solid rgba(232, 225, 216, .9);
    border-radius: 18px;
    display: flex;
    justify-content: center;
    gap: 7px;
    color: var(--muted);
    font-size: 13px;
}

.login-footer-note a {
    color: var(--itb-deep-horizon);
    font-weight: 800;
    text-decoration: none;
}

.login-bg-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(1px);
    opacity: .34;
    animation: orbMove 7s ease-in-out infinite alternate;
}

.orb-one {
    width: 150px;
    height: 150px;
    background: rgba(0, 60, 135, .18);
    top: 2%;
    right: -65px;
}

.orb-two {
    width: 120px;
    height: 120px;
    background: rgba(255, 124, 0, .20);
    left: -50px;
    top: 32%;
    animation-delay: .8s;
}

.orb-three {
    width: 170px;
    height: 170px;
    background: rgba(0, 149, 146, .14);
    bottom: 0;
    right: 38%;
    animation-delay: 1.2s;
}

.login-modal-box {
    animation: modalUp .20s ease-out;
}

.login-modal-head {
    text-align: center;
    margin-bottom: 16px;
    padding-top: 10px;
}

.login-modal-head span {
    width: 52px;
    height: 52px;
    border-radius: 20px;
    background: rgba(0, 60, 135, .08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 27px;
    margin-bottom: 10px;
}

.login-modal-head h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.login-modal-head p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.9;
}

@keyframes loginCardIn {
    from {
        transform: translateY(18px) scale(.98);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes loginFadeUp {
    from {
        transform: translateY(14px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-7px);
    }
}

@keyframes orbMove {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }
    to {
        transform: translate3d(10px, -14px, 0) scale(1.08);
    }
}

@media (max-width: 380px) {
    .login-modern-card {
        padding: 20px 14px 16px;
        border-radius: 26px;
    }

    .login-brand-area h1 {
        font-size: 21px;
    }

    .login-logo-wrap {
        width: 106px;
        min-height: 76px;
    }

    .login-choice-card.modern-card {
        min-height: 106px;
        grid-template-columns: 48px 1fr;
    }

    .login-choice-card.modern-card .login-choice-icon {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }
}

.otp-resend-row {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 36px;
    margin-top: 20px;
    padding: 0 4px 0 4px;
}

.otp-resend-link {
    display: inline-flex;
    align-items: center;
    width: auto;
    min-height: 32px;
    padding: 0;
    margin-right: auto;
    margin-left: 0;
    border: 0;
    background: transparent;
    color: #7b8494;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.8;
    white-space: nowrap;
    cursor: default;
    appearance: none;
    -webkit-appearance: none;
}

.otp-resend-link span {
    display: inline-block;
    min-width: 20px;
    margin: 0 3px;
    color: #2452c8;
    font-weight: 900;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.otp-resend-link:disabled {
    opacity: 1;
    background: transparent;
    color: #7b8494;
}

.otp-resend-link.is-active {
    color: #2452c8;
    font-weight: 900;
    cursor: pointer;
}

.otp-resend-link.is-active:active {
    opacity: 0.7;
}

.otp-resend-link.is-active:hover,
.otp-resend-link.is-active:focus {
    color: #173f87;
    text-decoration: underline;
}

.otp-submit-button {
    grid-column: 1;
    grid-row: 1;
}

.otp-change-phone-button {
    grid-column: 2;
    grid-row: 1;
}

@media (max-width: 480px) {

.otp-resend-row {
    margin-top: 22px;
    padding-left: 2px;
}

.otp-resend-link {
    font-size: 12px;
}


.login-modal-messages {
    width: 100%;
    margin: 0 0 16px;
}

.login-modal-message {
    padding: 11px 13px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.8;
    text-align: right;
}

.login-modal-message.error {
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.login-modal-message.success {
    color: #166534;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.login-modal-message.warning {
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
}


