/* ============================================
   ForgetMeNot — Ultra Premium Auth Stylesheet
   SaaS Startup / Shielder Aesthetic
   ============================================ */

:root {
    --auth-bg: #030712;
    --auth-card: rgba(17, 24, 39, 0.6);
    --auth-border: rgba(255, 255, 255, 0.1);
    --auth-border-glow: rgba(56, 189, 248, 0.5);
    --auth-input-bg: rgba(0, 0, 0, 0.4);
    --auth-input-border: rgba(255, 255, 255, 0.15);
    --auth-text: #f8fafc;
    --auth-muted: #94a3b8;
    --auth-primary: #0ea5e9;
    --auth-accent: #8b5cf6;
}

.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--auth-bg);
    padding: 2rem;
    overflow: hidden;
    position: relative;
    font-family: 'Inter', sans-serif;
    color: var(--auth-text);
}

.auth-container {
    position: relative;
    width: 100%;
    max-width: 440px;
    z-index: 10;
}

.auth-card {
    background: var(--auth-card);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid var(--auth-border);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    animation: authSlideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--auth-border-glow), transparent);
    opacity: 0.8;
}

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

.auth-logo {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--auth-primary), var(--auth-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.5rem;
    color: white;
    box-shadow: 
        0 10px 25px -5px rgba(14, 165, 233, 0.4),
        inset 0 2px 4px rgba(255,255,255,0.3);
}

.auth-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 0.5rem;
}

.auth-tagline {
    color: var(--auth-muted);
    font-size: 0.9rem;
    font-weight: 400;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.auth-form .form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--auth-muted);
    margin-bottom: 0.5rem;
    text-align: left;
}

.auth-form .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-form .input-icon {
    position: absolute;
    left: 1rem;
    color: var(--auth-muted);
    font-size: 1rem;
    pointer-events: none;
    transition: color 0.3s ease;
}

.auth-form .form-input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.8rem;
    background: var(--auth-input-bg);
    border: 1px solid var(--auth-input-border);
    border-radius: 12px;
    color: var(--auth-text);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.auth-form .form-input:focus {
    border-color: var(--auth-primary);
    background: rgba(0,0,0,0.6);
    box-shadow: 
        0 0 0 4px rgba(14, 165, 233, 0.15),
        inset 0 2px 4px rgba(0,0,0,0.1);
    outline: none;
}

.auth-form .form-input:focus + .input-icon,
.auth-form .input-wrapper:focus-within .input-icon {
    color: var(--auth-primary);
}

.auth-form .btn-primary {
    width: 100%;
    padding: 0.85rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--auth-primary), var(--auth-accent));
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
}

.auth-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(139, 92, 246, 0.5);
    background: linear-gradient(135deg, #38bdf8, #a78bfa);
}

.auth-form .form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.remember-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--auth-muted);
    font-size: 0.85rem;
    cursor: pointer;
}

.remember-check input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid var(--auth-input-border);
    border-radius: 4px;
    background: var(--auth-input-bg);
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.remember-check input[type="checkbox"]:checked {
    background: var(--auth-primary);
    border-color: var(--auth-primary);
}

.remember-check input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 12px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}

.auth-link {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--auth-muted);
}

.auth-link a {
    color: var(--auth-primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-link a:hover {
    color: #38bdf8;
}

/* --- Ambient Glows --- */
.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}
.glow-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: var(--auth-primary);
}
.glow-2 {
    bottom: 10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: var(--auth-accent);
}
.glow-3 {
    top: 40%;
    left: 30%;
    width: 400px;
    height: 400px;
    background: #10b981;
    opacity: 0.15;
}

@keyframes authSlideUp {
    0% { opacity: 0; transform: translateY(30px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}


/* --- PIN Pad UI --- */
.pin-display {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.pin-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pin-dot.filled {
    background: var(--auth-primary);
    border-color: var(--auth-primary);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.5);
    transform: scale(1.15);
}

.pin-dot.error {
    background: #ef4444;
    border-color: #ef4444;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.5);
}

.pin-shake {
    animation: shake 0.4s ease-in-out;
}

.numpad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
    max-width: 220px;
    margin: 0 auto 2rem;
}

.numpad-btn {
    height: 48px;
    border-radius: 24px; /* Oval/pill shape */
    background: rgba(59, 130, 246, 0.08); /* Soft blue tint */
    border: none;
    color: white;
    font-size: 1.3rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.numpad-btn:hover {
    background: rgba(59, 130, 246, 0.15);
    transform: scale(1.05);
}

.numpad-btn:active {
    background: rgba(59, 130, 246, 0.25);
    transform: scale(0.92);
}

.numpad-btn.action {
    background: transparent;
    color: var(--auth-muted);
    font-size: 1.3rem;
}

.numpad-btn.action:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    50% { transform: translateX(8px); }
    75% { transform: translateX(-8px); }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 2.5rem 1.5rem;
        border-radius: 20px;
    }
}
