:root {
    --blue-main: #0078ff;
    --blue-dark: #00368f;
    --white: #ffffff;
    --gray-light: #eef5ff;
    --text-dark: #111;
    --shadow-card: 0 30px 60px rgba(0, 0, 0, 0.25);
}

body {
    background-color: var(--white);
    color: var(--text-dark);
}
html,
body {
    overflow-x: hidden;
}
.login-wrapper {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    padding-bottom: 0;
}

.login-left {
    flex: 1;
    background: var(--blue-main);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4rem 1rem 4rem;
    text-align: center;
    position: relative;
}

.left-top-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 680px;
    width: 100%;
    z-index: 2;
}

.left-logo-wordmark {
    max-width: 380px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.6));
    margin-bottom: 2.5rem;
}

.left-spinner {
    width: 300px;
    height: auto;
    margin-bottom: 2rem;
    animation: spin 10s linear infinite;
    filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.35));
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.left-headline {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(0, 0, 0, 0.9);
    margin-bottom: 1rem;
}

.left-desc {
    max-width: 620px;
    font-size: 1.15rem;
    line-height: 1.6;
    font-weight: 500;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.left-desc .hl-yellow {
    color: #ffe600;
    font-weight: 700;
}

.left-desc .hl-green {
    color: #b6ff00;
    font-weight: 700;
}

.device-cluster {
    position: absolute;
    bottom: 2rem;
    right: 6%;
    width: 460px;
    height: 200px;
    pointer-events: none;
    opacity: 0.28;
    filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.7));
    transform: scale(1.05);
}

.device-laptop {
    position: absolute;
    left: 200px;
    bottom: 0;
    width: 180px;
    height: 120px;
    background: #1a3870;
    border-radius: 8px 8px 6px 6px;
    box-shadow: 0 30px 40px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transform: perspective(800px) rotateX(2deg);
}

.device-laptop::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 24px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6) inset;
}

.device-laptop::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 34px;
    height: 44px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    opacity: 0.18;
}

.device-laptop div {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 8px;
    background: #000;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 16px 22px rgba(0, 0, 0, 0.8);
}

.device-tablet {
    position: absolute;
    left: 20px;
    bottom: 24px;
    width: 150px;
    height: 100px;
    background: #1a3870;
    border-radius: 14px;
    box-shadow: 0 24px 32px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transform: rotate(-3deg);
}

.device-tablet::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.7) inset;
}

.device-tablet::after {
    content: "";
    position: absolute;
    top: 16px;
    left: 12px;
    right: 12px;
    height: 52px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    opacity: 0.16;
}

.device-phone {
    position: absolute;
    left: 410px;
    bottom: 32px;
    width: 60px;
    height: 118px;
    background: #1a3870;
    border-radius: 14px;
    box-shadow: 0 26px 32px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: rotate(4deg);
}

.device-phone::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.8) inset;
}

.device-phone::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    top: 30px;
    height: 50px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    opacity: 0.18;
}

.login-right {
    flex: 1;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 2rem 4rem;
    position: relative;
}

.login-card-desktop {
    width: 100%;
    max-width: 520px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    padding: 2.5rem 2rem 2rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.desktop-brand-logo {
    text-align: center;
    margin-bottom: 1.5rem;
    width: 100%;
}

.desktop-brand-logo img {
    max-height: 72px;
    height: auto;
    width: auto;
    filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.4));
    display: block;
    margin: 0 auto;
}

.desktop-form-inner {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.input-row {
    display: flex;
    align-items: center;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    background: var(--gray-light);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) inset;
    font-size: 1rem;
}

.input-row i {
    background: var(--blue-main);
    color: #fff;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    min-width: 56px;
    font-size: 1rem;
}

.input-row input {
    flex: 1;
    border: none;
    background: var(--gray-light);
    padding: 1rem;
    font-size: 1rem;
    font-weight: 500;
    min-height: 56px;
}

.input-row input:focus {
    outline: none;
    background: #fff;
}

.remember-row-desktop {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #111;
    margin-bottom: 1rem;
}

.login-btn-desktop,
.login-btn-mobile {
    width: 100%;
    background: var(--blue-main);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    padding: 1rem 1.25rem;
    text-align: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
    margin-bottom: 0.75rem;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    cursor: pointer;
}

.login-btn-desktop:active,
.login-btn-mobile:active {
    transform: translateY(1px);
}

.login-btn-desktop .btn-progress,
.login-btn-mobile .btn-progress {
    display: none;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.login-btn-desktop .btn-progress i,
.login-btn-mobile .btn-progress i {
    font-size: 1rem;
}

.login-btn-desktop.is-loading,
.login-btn-mobile.is-loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.login-btn-desktop.is-loading .btn-label,
.login-btn-mobile.is-loading .btn-label {
    display: none;
}

.login-btn-desktop.is-loading .btn-progress,
.login-btn-mobile.is-loading .btn-progress {
    display: flex;
}

.login-btn-mobile .btn-label,
.login-btn-desktop .btn-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.forgot-desktop {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.forgot-desktop a {
    color: var(--blue-dark);
    text-decoration: none;
}

.mobile-shell {
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    padding-top: 60px;
    padding-bottom: 80px;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.mobile-topbar-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--blue-main);
    color: #fff;
    z-index: 9998;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-topbar-inner {
    max-width: 480px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.mobile-topbar-inner img {
    width: 225px;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.8));
}

.mobile-main-area {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0 auto;
}

.login-circle-badge {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: var(--blue-main);
    box-shadow:
        0 0 0 4px #fff,
        0 24px 32px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: -2rem;
    z-index: 5;
}

.login-circle-badge img {
    width: 90%;
    height: auto;
    animation: spin 10s linear infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

.login-card-mobile {
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    padding: 2.5rem 1.25rem 1.5rem;
    width: 100%;
    max-width: 400px;
    text-align: left;
    margin: 0 auto;
}

.login-card-mobile form {
    max-width: 360px;
    margin: 0 auto;
}

.remember-row-mobile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: #111;
    margin-bottom: 1rem;
}

.forgot-mobile {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.forgot-mobile a {
    color: var(--blue-dark);
    text-decoration: none;
}

.auth-fixed-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 60px;
    background: var(--blue-main);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    z-index: 9999;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.auth-fixed-footer-inner {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    max-width: 480px;
    line-height: 1.2;
    text-align: center;
}

.auth-fixed-footer-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    width: 14px;
    height: 14px;
    color: #dfe6ff;
    background: #bfc7ff;
    border-radius: 50%;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.6),
        0 0 4px rgba(255, 255, 255, 0.4) inset;
}

.auth-fixed-footer-icon i {
    font-size: 10px;
    color: #001b5a;
    text-shadow:
        0 1px 1px rgba(255, 255, 255, 0.6),
        0 -1px 1px rgba(0, 0, 0, 0.8);
}

.auth-fixed-footer-text {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    text-shadow:
        0 1px 0 rgba(0, 0, 0, 0.8),
        0 0 6px rgba(0, 0, 0, 0.8);
}

@media (min-width: 992px) {
    .login-wrapper {
        flex-direction: row;
    }

    .login-left {
        display: flex;
    }

    .device-cluster {
        display: block;
    }

    .login-right {
        flex: 1;
        padding-top: 2rem;
        padding-bottom: 4rem;
        align-items: center;
        justify-content: center;
        background: var(--white);
    }

    .login-card-desktop {
        display: flex;
    }

    .mobile-shell {
        display: none;
    }

    .auth-fixed-footer {
        display: none !important;
    }
}

@media (max-width: 991px) {
    .login-wrapper {
        flex-direction: column;
        min-height: 100vh;
        padding-bottom: 60px;
        background: var(--white);
    }

    .login-left {
        display: none;
    }

    .device-cluster {
        display: none;
    }

    .login-right {
        flex: 0 0 auto;
        width: 100%;
        padding: 0;
        align-items: stretch;
        justify-content: flex-start;
        background: var(--white);
    }

    .login-card-desktop {
        display: none;
    }

    .mobile-shell {
        display: flex;
    }

    .mobile-topbar-fixed {
        height: 60px;
    }

    .mobile-topbar-inner img {
        width: 210px;
    }

    .login-circle-badge {
        width: 110px;
        height: 110px;
        margin-bottom: -2rem;
    }

    .login-card-mobile {
        max-width: 400px;
        border-radius: 12px;
        padding: 2rem 1.25rem 1.5rem;
        box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
        text-align: left;
    }

    .login-card-mobile form {
        max-width: 360px;
    }

    .input-row {
        font-size: 0.95rem;
        border-radius: 6px;
    }

    .input-row i {
        min-width: 50px;
        height: 50px;
        font-size: 0.9rem;
        padding: 0 14px;
    }

    .input-row input {
        min-height: 50px;
        font-size: 0.95rem;
        padding: 0.8rem 1rem;
    }

    .login-btn-desktop,
    .login-btn-mobile {
        min-height: 50px;
        font-size: 0.95rem;
        padding: 0.8rem 1rem;
        border-radius: 6px;
        margin-bottom: 0.5rem;
    }

    .remember-row-desktop,
    .remember-row-mobile {
        font-size: 0.8rem;
    }

    .forgot-desktop,
    .forgot-mobile {
        font-size: 0.75rem;
    }

    .auth-fixed-footer {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
    }
}

@media (max-width: 480px) {
    .mobile-topbar-fixed {
        height: 56px;
    }

    .mobile-topbar-inner img {
        width: 190px;
    }

    .login-circle-badge {
        width: 100px;
        height: 100px;
        margin-bottom: -1.5rem;
    }

    .login-card-mobile {
        max-width: 360px;
        margin: 0 auto;
        border-radius: 10px;
        padding: 1.5rem 1rem 1.25rem;
    }

    .login-card-mobile form {
        max-width: 330px;
    }

    .input-row i {
        min-width: 46px;
        height: 48px;
        font-size: 0.85rem;
        padding: 0 12px;
    }

    .input-row input {
        min-height: 48px;
        font-size: 0.9rem;
        padding: 0.7rem 0.9rem;
    }

    .login-btn-desktop,
    .login-btn-mobile {
        min-height: 48px;
        font-size: 0.9rem;
        padding: 0.7rem 0.9rem;
        border-radius: 6px;
    }

    .auth-fixed-footer-text {
        font-size: 11px;
    }
}
@media (max-width: 991px) {
    .login-wrapper {
        min-height: 100vh;
        padding-bottom: 60px;
        overflow-y: hidden;
    }

    .mobile-shell {
        min-height: calc(100vh - 60px);
    }
}

/* OTP and Password Screen Styles */
.otp-screen,
.password-screen {
    padding: 2rem;
    animation: fadeIn 0.3s ease-in;
}

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

/* OTP Action Buttons Container */
.otp-action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 0;
}

.resend-btn,
.back-btn {
    background: transparent;
    border: 2px solid #0459baff;
    color: #0459baff;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    width: 100%;
    margin: 0;
}

.resend-btn i,
.back-btn i {
    font-weight: 900;
    margin-right: 6px;
}

.resend-btn:hover:not(:disabled),
.back-btn:hover {
    background: #0459baff;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(4, 89, 186, 0.3);
}

.resend-btn:active,
.back-btn:active {
    transform: translateY(0);
}

/* Pulse animation for resend button */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(4, 89, 186, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(4, 89, 186, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(4, 89, 186, 0);
    }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

.resend-btn:disabled {
    cursor: not-allowed;
    background: #f1f3f5;
    border-color: #adb5bd;
    color: #868e96;
    font-weight: 700;
    opacity: 1;
}

.resend-btn:disabled:hover {
    background: #f1f3f5;
    color: #868e96;
    transform: none;
    border-color: #adb5bd;
    box-shadow: none;
}

/* Login Button Disabled State */
.login-btn-desktop.btn-disabled,
.login-btn-mobile.btn-disabled,
.login-btn-desktop:disabled,
.login-btn-mobile:disabled {
    background: #e9ecef !important;
    color: #adb5bd !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}

.login-btn-desktop.btn-disabled:hover,
.login-btn-mobile.btn-disabled:hover,
.login-btn-desktop:disabled:hover,
.login-btn-mobile:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

@media (max-width: 576px) {
    .otp-action-buttons {
        gap: 8px;
    }

    .resend-btn,
    .back-btn {
        padding: 0.65rem 0.75rem;
        font-size: 0.85rem;
    }
}

/* Circle Timer Styles */
.circle-timer-container {
    position: relative;
    display: inline-block;
    width: 120px;
    height: 120px;
}

.circle-timer-svg {
    transform: rotate(-90deg);
}

.circle-timer-bg {
    fill: none;
    stroke: #e9ecef;
    stroke-width: 8;
}

.circle-timer-progress {
    fill: none;
    stroke: #ef4444;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 339.292;
    stroke-dashoffset: 0;
    transition:
        stroke-dashoffset 0.3s ease,
        stroke 0.3s ease;
}

.circle-timer-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: 700;
    color: #ef4444;
    text-align: center;
}

#circleTimerDisplay {
    display: block;
    transition: color 0.3s ease;
}
/* OTP Input Styles */
.otp-input-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.otp-digit {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #f8f9fa;
    color: #0459baff;
    transition: all 0.3s ease;
    outline: none;
}

.otp-digit:focus {
    border-color: #0459baff;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(4, 89, 186, 0.1);
}

.otp-digit:not(:placeholder-shown) {
    background: #ffffff;
    border-color: #0459baff;
}

@media (max-width: 576px) {
    .otp-digit {
        width: 42px;
        height: 52px;
        font-size: 1.25rem;
    }

    .otp-input-container {
        gap: 6px;
    }
}
