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

:root {
    /* Palette based on user request */
    --bg-body: #0f1115; /* Deep dark background */
    --bg-card: #161b22; /* Slightly lighter for cards */
    --bg-input: #0d1117; /* Very dark for inputs */
    
    --primary-gradient-start: #0ea5e9; /* Sky blue */
    --primary-gradient-end: #2563eb;   /* Royal blue */
    
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-placeholder: #4b5563;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --focus-ring: rgba(14, 165, 233, 0.4);
    
    --radius-pill: 9999px;
    --radius-card: 16px;
    
    --shadow-soft: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(14, 165, 233, 0.15);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Layout & Navbar --- */
.navbar {
    background-color: rgba(22, 27, 34, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #fff;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    flex: 1;
}

/* --- Auth Card System --- */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 1rem;
    flex: 1;
}

.auth-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    padding: 3rem;
    width: 100%;
    max-width: 550px; /* Wider layout as requested */
    box-shadow: var(--shadow-soft);
}

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

.auth-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

/* --- Forms & Inputs --- */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    margin-left: 0.5rem; /* Align with pill curve */
}

.form-control {
    width: 100%;
    background-color: var(--bg-input);
    border: 1px solid transparent; /* No border initially */
    color: #fff;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border-radius: var(--radius-pill);
    transition: all 0.2s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3); /* Subtle inner shadow */
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-gradient-start);
    box-shadow: 0 0 0 4px var(--focus-ring);
    background-color: #05070a;
}

.form-control::placeholder {
    color: var(--text-placeholder);
}

/* Custom Select Styling */
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.5rem center;
    background-size: 1.25rem;
    cursor: pointer;
}

/* Checkbox */
.form-check {
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    padding-left: 0.5rem;
}

.form-check-input {
    appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    background-color: var(--bg-input);
    border: 1px solid var(--text-muted);
    border-radius: 4px;
    margin-right: 0.75rem;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-check-input:checked {
    background-color: var(--primary-gradient-end);
    border-color: var(--primary-gradient-end);
}

.form-check-input:checked::after {
    content: '✓';
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
}

.form-check-label {
    color: var(--text-muted);
    font-size: 0.95rem;
    cursor: pointer;
}

/* --- Buttons --- */
.btn-primary {
    display: inline-block;
    width: 100%; /* Default full width on mobile, adjusted in layout */
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-gradient-start), var(--primary-gradient-end));
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 12px rgba(37, 99, 235, 0.4);
}

/* --- Links --- */
a.link {
    color: var(--primary-gradient-end);
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s;
}

a.link:hover {
    color: var(--primary-gradient-start);
}

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

/* --- Alerts --- */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}

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

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

/* --- Hero Section (Index) --- */
.hero-wrapper {
    padding: 8rem 0 6rem;
    text-align: center;
    background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.15) 0%, rgba(15, 17, 21, 0) 70%);
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 3rem;
}

.btn-hero {
    padding: 1.25rem 3.5rem;
    font-size: 1.25rem;
}

/* --- Features Grid --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    padding: 4rem 0;
}

.feature-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 20px;
    transition: transform 0.3s ease, border-color 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

/* Footer */
.main-footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    margin-top: auto;
    text-align: center;
    color: var(--text-muted);
}
