/* ==============================================================================
 * Klikmu - Public & Authentication Design System
 * Vibrant Modern Glassmorphism & Aurora Aesthetics
 * ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    --bg-base: #0a0d18;
    --bg-card: rgba(16, 22, 42, 0.82);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --border-focus: #6366f1;

    --brand-primary: #4f46e5;
    --brand-primary-hover: #4338ca;
    --brand-primary-active: #3730a3;
    --brand-gradient: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #06b6d4 100%);
    --brand-gradient-hover: linear-gradient(135deg, #4338ca 0%, #4f46e5 50%, #0ea5e9 100%);

    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;

    --status-rose: #f43f5e;
    --status-rose-subtle: rgba(244, 63, 94, 0.16);
    --status-rose-border: rgba(244, 63, 94, 0.38);

    --shadow-specular: inset 0 1px 0 rgba(255, 255, 255, 0.15);
    --shadow-card: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(99, 102, 241, 0.18), var(--shadow-specular);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-base);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: hidden;
}

/* Ambient Aurora Glow & Grid */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: 
        radial-gradient(circle 800px at 15% 10%, rgba(99, 102, 241, 0.25), transparent 70%),
        radial-gradient(circle 700px at 85% 20%, rgba(6, 182, 212, 0.20), transparent 60%),
        radial-gradient(circle 600px at 50% 90%, rgba(168, 85, 247, 0.18), transparent 70%),
        radial-gradient(circle 500px at 10% 85%, rgba(244, 63, 94, 0.12), transparent 60%),
        linear-gradient(to right, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 36px 36px, 36px 36px;
    pointer-events: none;
    z-index: 0;
}

.auth-wrapper {
    width: 100%;
    max-width: 420px;
    margin: auto;
    position: relative;
    z-index: 1;
}

.auth-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 38px 34px;
    box-shadow: var(--shadow-card);
    animation: authFadeIn 0.35s 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: 3px;
    background: linear-gradient(90deg, #4f46e5, #06b6d4, #ec4899);
}

@keyframes authFadeIn {
    from { opacity: 0; transform: translateY(12px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.5);
    transition: transform 0.2s ease;
}

.auth-logo:hover {
    transform: scale(1.05);
}

.auth-logo svg {
    width: 24px;
    height: 24px;
    color: #ffffff;
}

.auth-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 60%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 6px;
}

.auth-subtitle {
    font-size: 13.5px;
    color: var(--text-muted);
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 11px 14px;
    background: rgba(10, 14, 28, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #ffffff;
    font-size: 13.5px;
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-specular);
}

.form-control:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.28), var(--shadow-specular);
    background: rgba(14, 20, 38, 0.9);
}

.btn-block {
    width: 100%;
    padding: 12px;
    background: var(--brand-gradient);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    margin-top: 10px;
}

.btn-block:hover {
    background: var(--brand-gradient-hover);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 6px 22px rgba(79, 70, 229, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transform: translateY(-1.5px);
}

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

.alert-danger {
    background: var(--status-rose-subtle);
    border: 1px solid var(--status-rose-border);
    color: #fca5a5;
    padding: 11px 14px;
    border-radius: 8px;
    font-size: 12.5px;
    margin-bottom: 20px;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}

.auth-footer a {
    color: #38bdf8;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s ease;
}

.auth-footer a:hover {
    color: #7dd3fc;
    text-decoration: underline;
}

/* Smartphone Screens <= 480px */
@media (max-width: 480px) {
    body {
        padding: 16px 12px;
    }
    .auth-wrapper {
        max-width: 100%;
    }
    .auth-card {
        padding: 26px 18px;
        border-radius: 14px;
    }
    .auth-title {
        font-size: 20px;
    }
    .form-control {
        font-size: 14px;
        padding: 11px 14px;
    }
    .btn-block {
        padding: 12px 18px;
        font-size: 14px;
    }
}

