html, body {
    height: 100%;
    margin: 0;
}

body {
    background-color: #0a1628;
    background-image: radial-gradient(circle at 10% 20%, rgba(9, 36, 121, 0.4) 0%, rgba(0, 0, 0, 0) 50%), radial-gradient(circle at 90% 80%, rgba(200, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0) 50%);
}

[data-bs-theme="dark"] body {
    background-color: #0a1628;
}

.d-flex.flex-column.flex-root {
    height: 100vh;
    height: 100dvh;
}

.dashboard-container {
    padding: 40px;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dashboard-glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

    .stat-card:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateY(-5px);
        border-color: rgba(69, 162, 255, 0.3);
    }

.service-icon-row {
    gap: clamp(0.35rem, 0.8vw, 0.75rem);
}

.service-icon-box {
    flex: 1 1 0;
    min-width: 0;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 10px clamp(2px, 0.55vw, 10px);
    text-align: center;
    border: 1px solid transparent;
    transition: 0.3s;
}

    .service-icon-box:hover {
        background: rgba(255,255,255,0.1);
        border-color: rgba(255,255,255,0.2);
    }

    .service-icon-box .ki-duotone {
        font-size: clamp(1.35rem, 1.5vw, 2rem) !important;
    }

.service-icon-label {
    font-size: clamp(0.6rem, 0.62vw, 0.75rem);
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.status-dot {
    height: 8px;
    width: 8px;
    background-color: #50cd89;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 5px #50cd89;
    animation: pulse-green 2s infinite;
}

.form-bg {
    background-image: url('assets/media/auth/form_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.form-glass {
    position: relative;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

    .form-glass::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-radius: inherit;
        z-index: -1;
        pointer-events: none;
    }

/* OTP Input Styles */
.otp-input-container {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.otp-input {
    width: 52px;
    height: 64px;
    text-align: center;
    font-size: 1.75rem;
    font-weight: 600;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: #fff;
    outline: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    caret-color: transparent;
}

.otp-input::placeholder {
    color: rgba(255, 255, 255, 0.15);
}

.otp-input:focus {
    border-color: rgba(80, 205, 137, 0.6);
    background: rgba(80, 205, 137, 0.08);
    box-shadow: 0 0 0 3px rgba(80, 205, 137, 0.15),
                0 4px 20px rgba(80, 205, 137, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.otp-input.filled {
    border-color: rgba(80, 205, 137, 0.4);
    background: rgba(80, 205, 137, 0.05);
}

.otp-input.error {
    border-color: rgba(255, 99, 99, 0.6);
    background: rgba(255, 99, 99, 0.08);
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

/* Separator dot between 3rd and 4th digit */
.otp-separator {
    display: flex;
    align-items: center;
    padding: 0 4px;
}

.otp-separator::before {
    content: '';
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

/* Back to Login Link */
.back-to-login-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-to-login-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(-4px);
}

.back-to-login-link:active {
    transform: translateX(-2px);
    background: rgba(255, 255, 255, 0.05);
}

.back-to-login-link i {
    transition: transform 0.25s ease;
}

.back-to-login-link:hover i {
    transform: translateX(-3px);
}
