:root {
    --accent-blue: #0284c7; /* Darker, richer blue */
    --accent-hover: #0369a1;
    --bg-light: #f0f9ff;
    --card-white: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --input-bg: #f8fafc;
}

body, html {
    height: 100%;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
}

/* --- 1. Richer Blue Gradient Background --- */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Added deeper blues for a more vibrant contrast */
    background: linear-gradient(-45deg, #bae6fd, #e0f2fe, #7dd3fc, #ffffff);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- 2. Floating Background Objects --- */
.bg-objects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.obj {
    position: absolute;
    background: rgba(2, 132, 199, 0.08);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(2, 132, 199, 0.1);
    animation: floatObj 25s infinite linear;
}

.obj-circle { border-radius: 50%; }
.obj-square { border-radius: 20%; }

@keyframes floatObj {
    0% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, 50px) rotate(120deg); }
    66% { transform: translate(-20px, 100px) rotate(240deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

/* --- 3. Login Card Styling --- */
.login-card {
    background: var(--card-white);
    border-radius: 28px;
    padding: 3rem;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 25px 50px -12px rgba(2, 132, 199, 0.15), 0 10px 15px -3px rgba(0, 0, 0, 0.02);
    position: relative;
    z-index: 10;
    opacity: 0;
    transform: translateY(20px);
    animation: cardEntrance 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

@keyframes cardEntrance {
    to { opacity: 1; transform: translateY(0); }
}

.brand-logo {
    /* width: 54px;
    height: 54px;
    background: var(--accent-blue);
    color: #ffffff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;*/
    margin-bottom: 1.5rem;
    /* transition: all 0.3s ease; */
    /* box-shadow: 0 10px 20px -5px rgba(2, 132, 199, 0.4); */ */
}
.brand-logo img{
    width: 200px;
}

h1 { font-weight: 700; color: var(--text-main); font-size: 1.85rem; margin-bottom: 0.5rem; }
.subtitle { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 2rem; }

.form-control-custom {
    border: 2px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 0.8rem 1rem 0.8rem 2.8rem !important;
    font-size: 0.95rem;
    background-color: var(--input-bg) !important;
}

.form-control-custom:focus {
    border-color: var(--accent-blue) !important;
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.1) !important;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.password-field-wrap {
    position: relative;
}

.password-field-wrap .form-control-custom {
    padding-right: 3.2rem !important;
}

.password-toggle-btn {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    transform: translateY(-50%);
    transition: all 0.2s ease;
}

.password-toggle-btn:hover {
    color: var(--text-main);
    background: rgba(148, 163, 184, 0.12);
}

.password-toggle-btn:focus-visible {
    outline: 2px solid rgba(2, 132, 199, 0.3);
    outline-offset: 2px;
}

.btn-submit {
    background: var(--accent-blue);
    color: white;
    border: none;
    border-radius: 14px;
    padding: 0.95rem;
    font-weight: 600;
    width: 100%;
    margin-top: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px -6px rgba(2, 132, 199, 0.4);
}

.btn-submit:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px -8px rgba(2, 132, 199, 0.5);
}

.auth-link { color: var(--accent-blue); font-weight: 600; text-decoration: none; }
.auth-link:hover { text-decoration: underline; }

@media (max-width: 576px) {
    .login-card { padding: 2rem 1.5rem; box-shadow: none; background: transparent; }
}


/* --- 2. Card Styling --- */
.verification-card {
    background: var(--card-white);
    border-radius: 28px;
    padding: 3rem;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 25px 50px -12px rgba(2, 132, 199, 0.15);
    position: relative;
    z-index: 10;
    opacity: 0;
    transform: translateY(20px);
    animation: cardEntrance 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    border: 1px solid rgba(255, 255, 255, 0.8);
    text-align: center;
}

@keyframes cardEntrance {
    to { opacity: 1; transform: translateY(0); }
}

.brand-logo {
    /* width: 54px;
    height: 54px; */
    /* background: var(--accent-blue); */
    color: #ffffff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    /* box-shadow: 0 10px 20px -5px rgba(2, 132, 199, 0.4); */
}

h1 { font-weight: 700; font-size: 1.75rem; margin-bottom: 0.5rem; }
.subtitle { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 2rem; line-height: 1.5; }

/* --- 3. OTP Input Styling --- */
.otp-container {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 2rem;
}

.otp-input {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: var(--input-bg);
    transition: all 0.2s ease;
    color: var(--accent-blue);
}

.otp-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.1);
    transform: translateY(-2px);
}

/* --- 4. Timer & Resend --- */
.timer-container {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-weight: 500;
}

.timer-highlight {
    color: var(--accent-blue);
    font-weight: 700;
}

.resend-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.resend-link.active {
    opacity: 1;
    pointer-events: auto;
}

.resend-link:hover { text-decoration: underline; }

/* --- 5. Buttons --- */
.btn-verify {
    background: var(--accent-blue);
    color: white;
    border: none;
    border-radius: 14px;
    padding: 0.95rem;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px -6px rgba(2, 132, 199, 0.4);
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-verify.active {
    opacity: 1;
    cursor: pointer;
}

.btn-verify.active:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px -8px rgba(2, 132, 199, 0.5);
}

@media (max-width: 480px) {
    .verification-card { padding: 2.5rem 1.5rem; margin: 1rem; border-radius: 20px; }
    .otp-input { width: 40px; height: 50px; font-size: 1.25rem; }
    .otp-container { gap: 8px; }
}
