/* ============================
   Reset & Base
============================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #e2e8f0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================
   Header
============================ */
header {
    background-color: #1a202c;
    padding: 1rem 0;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links li a {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: #3b82f6;
}

/* ============================
   Auth Section
============================ */
.auth-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 1rem;
    background: url('../photos/liberty.jpg') center/cover no-repeat;
    background-attachment: fixed;
    position: relative;
}

/* Dark overlay */
.auth-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(3px);
}

/* Auth Container */
.auth-container {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 1rem;
    width: 380px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* Tabs */
.tabs {
    display: flex;
    justify-content: space-around;
    margin-bottom: 1.5rem;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 0.75rem;
    border: none;
    background: none;
    color: #cbd5e1;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: 0.3s ease;
}

.tab.active {
    color: #3b82f6;
    border-bottom: 2px solid #3b82f6;
}

/* Forms */
.form {
    display: none;
    flex-direction: column;
    gap: 1.2rem;
}
.form.active {
    display: flex;
}

.form h2 {
    text-align: center;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: #fff;
}

/* Input Fields */
.input-group {
    position: relative;
}
.input-group i {
    position: absolute;
    top: 12px;
    left: 12px;
    color: #9ca3af;
}
.input-group input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    border: none;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 1rem;
    outline: none;
}
.input-group input:focus {
    background: rgba(255,255,255,0.2);
}

/* Button */
.btn-primary {
    background-color: #3b82f6;
    color: #fff;
    padding: 0.8rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.btn-primary:hover {
    background-color: #2563eb;
}

/* Hint */
.hint {
    text-align: center;
    font-size: 0.9rem;
}
.hint a {
    color: #3b82f6;
    text-decoration: none;
}
.hint a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: #1a202c;
    color: #e2e8f0;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 420px) {
    .auth-container {
        width: 90%;
        padding: 2rem;
    }
}

/* ============================
   Login & Signup (Shared) Modal
============================ */
.auth-modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
}

.auth-modal-content {
    background-color: #1a202c;
    color: #f9fafb;
    padding: 2rem;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.auth-modal-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.auth-modal-content button {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background-color: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.auth-modal-content button:hover {
    background-color: #2563eb;
}

.close {
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: #f9fafb;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close:hover {
    color: #3b82f6;
}
