/* ==== AUTH PAGES (LOGIN & REGISTER) ==== */

body {
    background: radial-gradient(circle at top, #04101d 0%, #020617 40%, #02010c 100%);
    color: #f9fafb;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", Arial, sans-serif;
}

/* ----------------------------------------------------------
   AUTHENTICATION DESIGN — Quill Code Hosting
   ---------------------------------------------------------- */

.auth-container {
    max-width: 420px;
    margin: 60px auto;
    padding: 30px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    backdrop-filter: blur(6px);
    text-align: left;
}

.auth-container h1 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
    background: linear-gradient(90deg, #22d3ee, #38bdf8);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Labels & Inputs */
.auth-container label {
    display: block;
    margin-bottom: 6px;
    color: #cbd5e1;
    font-size: 0.9rem;
    font-weight: 500;
}

.auth-container input {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 18px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.4);
    border-radius: 10px;
    color: #e2e8f0;
    font-size: 0.95rem;
    outline: none;
    transition: border 0.2s ease, background 0.2s ease;
}

.auth-container input:focus {
    border-color: #38bdf8;
    background: rgba(30, 41, 59, 0.9);
}

/* Buttons */
.auth-container button {
    width: 100%;
    padding: 12px 0;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(90deg, #22d3ee, #3b82f6);
    color: #0f172a;
    box-shadow: 0 6px 20px rgba(34, 211, 238, 0.35);
    transition: all 0.25s ease;
}

.auth-container button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(34, 211, 238, 0.55);
}

/* Error box */
.error {
    margin-bottom: 20px;
    padding: 12px 15px;
    border-left: 4px solid #ef4444;
    background: rgba(153, 27, 27, 0.2);
    color: #fca5a5;
    border-radius: 6px;
    font-size: 0.95rem;
}

/* Success box */
.success {
    margin-bottom: 20px;
    padding: 12px 15px;
    border-left: 4px solid #22c55e;
    background: rgba(22, 163, 74, 0.2);
    color: #86efac;
    border-radius: 6px;
    font-size: 0.95rem;
}

/* Links under the form */
.auth-container p {
    text-align: center;
    color: #cbd5e1;
    margin-top: 14px;
    font-size: 0.9rem;
}

.auth-container a {
    color: #38bdf8;
    text-decoration: none;
    font-weight: 500;
}

.auth-container a:hover {
    text-decoration: underline;
}

.error {
    background: rgba(153, 27, 27, 0.35);
    border-left: 4px solid #ef4444;
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 12px;
    color: #fecaca;
    font-size: 0.9rem;
}
