/* auth.css */

/* Reset & Base */
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f0f4f8; /* Fallback */
}

/* Layer 1: 3D Background Container */
#bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    /* Gradient Background */
    background: radial-gradient(circle at 70% 50%, #f0f9ff 0%, #e0f2fe 100%);
}

/* Ensure canvas fills the container */
#bg-container canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Layer 2: Content Overlay */
#auth-overlay {
    position: relative; /* Stacks above fixed background */
    z-index: 10;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    /* Desktop: align left, but give some space */
    justify-content: flex-start;
    padding: 2rem;
    box-sizing: border-box;
    pointer-events: none; /* Allow clicks to pass through to the 3D background */
}

/* Container for the form */
.auth-container {
    width: 100%;
    max-width: 420px;
    margin-left: 8%; /* Offset from left on desktop */
    pointer-events: auto; /* Re-enable interaction for the form */
}

/* Glassmorphism Panel */
.glass-panel {
    background: rgba(255, 255, 255, 0.75); /* High transparency as requested */
    backdrop-filter: blur(12px); /* Frosted glass effect */
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.02),
        0 12px 34px rgba(0, 0, 0, 0.04),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5); /* Inner light */
    border-radius: 24px;
    padding: 3rem 2.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
    box-shadow:
        0 6px 12px rgba(0, 0, 0, 0.03),
        0 18px 48px rgba(0, 0, 0, 0.06),
        inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

/* Typography & Form Elements overrides */
.auth-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.auth-subtitle {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.form-label {
    font-weight: 600;
    color: #475569;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    display: block;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid rgba(203, 213, 225, 0.6);
    border-radius: 12px; /* Smooth corners */
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.6);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.btn-auth {
    width: 100%;
    padding: 1rem;
    border-radius: 12px; /* Smooth corners */
    font-weight: 600;
    margin-top: 1.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.auth-text-link {
    text-align: center;
    color: #64748b;
}

.auth-text-link a {
    color: #2563eb;
    font-weight: 600;
    position: relative;
    text-decoration: none;
}

.auth-text-link a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1.5px;
    bottom: -2px;
    left: 0;
    background-color: #2563eb;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.auth-text-link a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Header overrides specifically for Auth pages to be transparent/minimal if needed */
.site-header {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(8px) !important;
    border-bottom: none !important;
    /* Optional: Hide site header entirely or make less obtrusive if desired
       But keeping it for navigation is good.
    */
}

/* Responsive */
@media (max-width: 900px) {
    #auth-overlay {
        justify-content: center;
        padding: 1.5rem;
    }

    .auth-container {
        margin-left: 0;
        max-width: 100%;
    }

    .glass-panel {
        padding: 2rem 1.5rem;
    }
}
