@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #0ea5e9; /* Sky Blue to match homepage */
    --primary-hover: #0284c7;
    --primary-glow: rgba(14, 165, 233, 0.25);
    --orange: #f97316;
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --text-dark: #0f172a;
    --text-gray: #475569;
    --border: #e2e8f0;
    --input-bg: #f1f5f9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-body);
    color: var(--text-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    /* Subtle gradient matching the homepage */
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(14, 165, 233, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(249, 115, 22, 0.05), transparent 25%);
}

.auth-container {
    background: var(--bg-card);
    padding: 45px;
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 440px;
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 10;
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.logo {
    text-align: center;
    font-size: 34px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 10px;
    text-decoration: none;
    display: block;
    letter-spacing: -0.5px;
}
.logo span { color: var(--primary); }

h2 {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 35px;
    font-size: 1rem;
    font-weight: 400;
}

.error-msg {
    background: #fef2f2;
    color: #ef4444;
    padding: 14px;
    border-radius: 10px;
    margin-bottom: 25px;
    text-align: center;
    font-size: 0.9rem;
    border: 1px solid #fecaca;
    font-weight: 500;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    background: var(--input-bg);
    border: 2px solid transparent;
    border-radius: 10px;
    font-size: 1rem;
    color: var(--text-dark);
    outline: none;
    transition: all 0.3s ease;
}

.form-group input::placeholder { color: #94a3b8; }

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
    background: var(--white);
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px var(--primary-glow);
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px var(--primary-glow);
    background: var(--primary-hover);
}

.footer-links {
    text-align: center;
    margin-top: 30px;
    font-size: 0.95rem;
    color: var(--text-gray);
}

.footer-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.back-home {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    margin-top: 25px;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.3s;
}

.back-home:hover {
    color: var(--primary);
}