@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Outfit:wght@500;600;700;800&display=swap');

:root {
    --bg-color: #07111c;
    --card-bg: rgba(10, 18, 31, 0.78);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-color: #14d7c3;
    --accent-hover: #0db7a7;
    --gradient-start: #14d7c3;
    --gradient-end: #2d9cff;
    --border-color: rgba(167, 224, 255, 0.14);
    --error-color: #ef4444;
}

body.theme-light {
    --bg-color: #eff5fb;
    --card-bg: rgba(255, 255, 255, 0.84);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --accent-color: #0ea5e9;
    --accent-hover: #0284c7;
    --gradient-start: #14d7c3;
    --gradient-end: #2d9cff;
    --border-color: rgba(15, 23, 42, 0.1);
}

body.theme-light .auth-card {
    box-shadow: 0 22px 46px -16px rgba(15, 23, 42, 0.16);
}

body.theme-light .form-control {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.12);
    color: var(--text-primary);
}

body.theme-light .form-control:focus {
    background: rgba(15, 23, 42, 0.02);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.16);
}

body.theme-light .form-control::placeholder {
    color: rgba(91, 107, 130, 0.82);
}

body.theme-light .alert-success {
    color: #15803d;
}

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

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: 
        radial-gradient(circle at top right, rgba(20, 215, 195, 0.14), transparent 40%),
        radial-gradient(circle at bottom left, rgba(45, 156, 255, 0.16), transparent 40%);
}

.auth-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.auth-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.5s ease-out forwards;
}

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

.auth-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 18px;
    text-decoration: none;
    color: var(--text-primary);
}

.auth-brand-logo {
    width: 78px;
    height: 78px;
    object-fit: contain;
    padding: 8px;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff, #eef6fb);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow:
        0 14px 28px rgba(15, 23, 42, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
    filter: drop-shadow(0 14px 24px rgba(15, 23, 42, 0.14));
}

.auth-brand span {
    font: 800 28px/1 'Outfit', sans-serif;
    letter-spacing: -0.04em;
}

.auth-header h1 {
    font: 800 32px/1.02 'Outfit', sans-serif;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.3s ease;
    outline: none;
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    background: rgba(15, 23, 42, 0.8);
}

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

.btn-primary {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 10px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px var(--gradient-start);
}

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

.auth-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.auth-footer a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--error-color);
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
