/* ========== AUTH 3D AESTHETIC ========== */
/* Matches the "Perfect AI Hub" Hero Section */

body {
    background-color: #030712;
    /* Deep background matching hero */
    color: #ffffff;
    font-family: 'Space Grotesk', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Prevent scrollbars from 3D canvas */
    position: relative;
}

/* Ensure Canvas is background */
#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
    /* Dim it slightly for readability */
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(closest-side, rgba(6, 182, 212, 0.08), transparent 100%);
    z-index: 0;
    pointer-events: none;
}

/* Glass Panel Container */
.auth-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 440px;
    background: rgba(15, 23, 42, 0.6);
    /* Translucent dark blue */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(6, 182, 212, 0.1);
    /* Subtle cyan rim */
    border-radius: 24px;
    padding: 3rem;
    animation: float-in 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes float-in {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Header */
.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-logo {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.04em;
    display: inline-block;
}

.logo-text {
    color: #ffffff;
}

.logo-domain {
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: #94a3b8;
    font-size: 0.95rem;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #cbd5e1;
    margin-left: 4px;
}

.form-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    color: #ffffff;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    background: rgba(0, 0, 0, 0.5);
    border-color: #06b6d4;
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.1);
}

.form-input::placeholder {
    color: #475569;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    background: #ffffff;
    color: #000000;
    font-weight: 700;
    padding: 1rem;
    border-radius: 12px;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 1rem;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(255, 255, 255, 0.2);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Links */
.form-footer {
    margin-top: 2rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
}

.form-footer a {
    color: #06b6d4;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.form-footer a:hover {
    color: #22d3ee;
    text-decoration: underline;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #86efac;
}

/* Admin Specific */
.admin-step {
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: none;
}

.admin-step.active {
    display: block;
}

.admin-step h3 {
    color: #fdba74;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.admin-step p {
    color: #fed7aa;
    font-size: 0.85rem;
}

/* Security Notice */
.security-notice {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.75rem;
    color: #475569;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}