/* assets/css/style.css */
@import 'vars.css';

/* Auth Page Layout */
/* Auth Page Layout */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: radial-gradient(circle at top right, #0f172a, #020617);
    position: relative;
    overflow: hidden;
}

/* Animated Background Mesh */
.auth-container::before {
    content: '';
    position: absolute;
    width: 120vw;
    height: 120vh;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 60%);
    top: -50%;
    right: -50%;
    z-index: 0;
    animation: float 20s infinite ease-in-out;
}

.auth-container::after {
    content: '';
    position: absolute;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
    bottom: -30%;
    left: -20%;
    z-index: 0;
    animation: float 25s infinite ease-in-out reverse;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-20px, 20px);
    }

    100% {
        transform: translate(0, 0);
    }
}

.auth-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    padding: 3.5rem;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;

    /* Premium Glassmorphism */
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.auth-logo {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-logo .logo-container {
    position: relative;
    display: inline-block;
}

.auth-logo h1 {
    font-size: 3.2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #ffffff;
    text-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.auth-logo span {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-logo p {
    color: #94a3b8;
    font-size: 0.95rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.form-group label {
    font-size: 0.85rem;
    color: #cbd5e1;
    font-weight: 600;
    margin-left: 4px;
    letter-spacing: 0.01em;
}

.form-input,
.form-control {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    color: #f1f5f9;
    font-size: 1rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    box-sizing: border-box;
}

.form-input::placeholder {
    color: rgba(148, 163, 184, 0.5);
}

.form-input:focus,
.form-control:focus {
    outline: none;
    border-color: #3b82f6;
    background: rgba(30, 41, 59, 0.8);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
    transform: translateY(-1px);
}

/* Force White Text on Autofill */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px rgba(30, 41, 59, 0.8) inset !important;
    -webkit-text-fill-color: white !important;
    caret-color: white;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3), 0 4px 6px -2px rgba(37, 99, 235, 0.1);
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #f87171, #ef4444);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(239, 68, 68, 0.4);
}

.btn-sm {
    padding: 0.5rem 1rem !important;
    font-size: 0.85rem !important;
    border-radius: 8px !important;
}

.auth-footer {
    text-align: center;
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 2rem;
}

.auth-footer a {
    color: #94a3b8;
    transition: color 0.2s;
}

.auth-footer a:hover {
    color: #f8fafc;
}

/* OTP Inputs */
.otp-inputs {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.otp-input {
    width: 48px;
    height: 64px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    text-align: center;
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    transition: all 0.2s;
    outline: none;
}

.otp-input:focus {
    background: rgba(59, 130, 246, 0.05);
    /* var(--primary-color) approx */
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.recovery-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 14px;
    font-size: 1.25rem;
    font-family: monospace;
    text-align: center;
    color: #3b82f6;
    font-weight: 800;
    letter-spacing: 4px;
    outline: none;
}

.shield-icon {
    width: 80px;
    height: 80px;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 2rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
    animation: pulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

/* Captcha Styling */
.captcha-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.25rem;
    margin-top: 1rem;
}

.captcha-question {
    display: block;
    margin-bottom: 0.75rem;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 500;
}

.captcha-question strong {
    color: #fff;
    font-size: 1rem;
    margin-left: 0.25rem;
}

/* Mobile Responsiveness & Touch Targets */
@media (max-width: 480px) {
    .auth-card {
        padding: 2rem;
        max-width: 90%;
        width: 95%;
        border-radius: 20px;
    }

    .auth-logo h1 {
        font-size: 2.5rem;
    }

    /* Prevent iOS Zoom on inputs */
    .form-input,
    .form-control,
    .otp-input,
    .recovery-input,
    select,
    textarea {
        font-size: 16px !important;
    }

    .otp-input {
        width: 40px;
        height: 54px;
        font-size: 1.5rem;
        border-radius: 10px;
    }

    .otp-inputs {
        gap: 8px;
    }
}