:root {
    --bg-dark: #0f172a;
    --panel-dark: rgba(30, 41, 59, 0.7);
    --neon-green: #10b981;
    /* Preluat ca Accent */
    --neon-glow: rgba(16, 185, 129, 0.3);
    --primary: #8b5cf6;
    --secondary: #3b82f6;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-glass: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    padding: 20px 0;
}

/* Efecte Spectaculoase pe Fundal (Orb-uri care plutesc luminos) */
.bg-animations {
    position: absolute;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--neon-glow) 0%, transparent 60%);
    border-radius: 50%;
    filter: blur(60px);
    animation: floating 15s infinite ease-in-out;
}

.orb-1 {
    top: -20%;
    left: -10%;
}

.orb-2 {
    bottom: -20%;
    right: -10%;
    animation-delay: -5s;
}

@keyframes floating {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(50px, 30px);
    }

    100% {
        transform: translate(0, 0);
    }
}

/* Centrarea si Containerul Principal */
.auth-container {
    z-index: 10;
    width: 100%;
    max-width: 1000px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: slideUpFade 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo si Branding */
.brand {
    text-align: center;
}

.brand .logo-icon svg {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        filter: drop-shadow(0 0 5px var(--secondary));
    }

    50% {
        filter: drop-shadow(0 0 20px var(--secondary));
    }

    100% {
        filter: drop-shadow(0 0 5px var(--secondary));
    }
}

.brand h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.brand h1 span {
    color: var(--primary);
}

.brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Panoul de sticla formulare (Glassmorphism) */
.auth-grid {
    display: flex;
    gap: 2rem;
    width: 100%;
    margin-top: 10px;
}

.glass-panel {
    flex: 1;
    background: var(--panel-dark);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

@media (max-width: 900px) {
    .auth-grid {
        flex-direction: column;
    }

    .auth-container {
        max-width: 480px;
        padding: 1rem;
    }
}

/* Formulare Inputuri */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-row {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.half {
    flex: 1;
    min-width: 0;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.input-group input,
.input-group select {
    width: 100%;
    background: #0f172a !important;
    border: 1px solid var(--border-glass);
    color: white !important;
    padding: 12px 16px;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s ease;
}

/* Fix pentru Autofill Browser care schimba fundalul in albastru/alb */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #0f172a inset !important;
    -webkit-text-fill-color: white !important;
    transition: background-color 5000s ease-in-out 0s;
}

.input-group input:focus,
.input-group select:focus {
    border-color: var(--neon-green);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
    background: #0f172a !important;
}

.input-group select option {
    background: #1e293b;
    color: white;
}

/* Buton Actiune Neon */
.action-btn {
    margin-top: 10px;
    background: transparent;
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
    padding: 16px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.action-btn:hover {
    background: var(--neon-green);
    color: #000;
    box-shadow: 0 0 25px var(--neon-glow);
}

/* Eroare Feedback */
.error-msg {
    color: #ff4757;
    font-size: 0.85rem;
    text-align: center;
    height: 15px;
}

/* Footer LegaloMica */
.footer-note {
    text-align: center;
    color: #515a72;
    font-size: 0.8rem;
}