:root {
    --primary: #ff0037;
    --bg: #0d0d0d;
    --card-bg: #1a1a1a;
    --text: #ffffff;
    --font: 'Poppins', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 8%;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-icons-header {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.social-icons-header a {
    color: #ccc;
    font-size: 1.5rem;
    transition: 0.3s;
    align-items: center;
    justify-content: center;
}

.social-icons-header a:hover {
    color: var(--primary);
    transform: scale(1.1);
    text-shadow: 0 0 10px var(--primary);
}

.logo { 
    font-size: 1.8rem; 
    font-weight: 700;
    animation:MasaColore 3.5s infinite alternate;  
}
@keyframes MasaColore {
    0% {
        color: #ff0044;
    }
    11% {
        color: #ff7700;
    }
    22% {
        color: #ffd500;
    }
    33% {
        color: #72ff00;
    }
    44% {
        color: #00ffee;
    }
    55% {
        color: #0048ff;
    }
    66% {
        color: #7600ff;
    }
    77% {
        color: #ff00c8;
    }
    88% {
        color: #ff4080;
    }
    100% {
        color: #00ff66;
    }
}

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

.nav-links a { 
    text-decoration: none;
    color: #ccc; 
    transition: 0.3s; 
}

.nav-links a:hover, .nav-links a.active { 
    color: var(--primary); 
    text-shadow: 0 0 10px var(--primary);
}


.auth-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    margin: 2rem 0;
}

.auth-card {
    max-width: 480px;
    width: 100%;
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(2px);
    border-radius: 28px;
    border: 1px solid rgba(255, 0, 55, 0.3);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 0, 55, 0.15);
    padding: 2.5rem 2rem;
    transition: 0.4s ease;
    animation: fadeInUp 0.8s ease-out;
}

.auth-card:hover {
    border-color: var(--primary);
    box-shadow: 0 30px 55px rgba(255, 0, 55, 0.25);
    transform: translateY(-5px);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header i {
   font-size: 4rem;
    color: var(--primary);
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

.auth-header h2 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff, #ff6680);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.auth-header p {
    color: #aaa;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}


.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    
    
}

.input-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ddd;
    letter-spacing: 0.5px;
}

.input-group label i {
    margin-right: 8px;
    color: var(--primary);
    font-size: 0.9rem;
    
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    background: #0f0f0f;
    border: 1.5px solid #2a2a2a;
    border-radius: 16px;
    color: white;
    font-family: var(--font);
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.input-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 18px rgba(255, 0, 55, 0.4);
    background: #111;
    transform: scale(1.01);
}

.auth-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: 0.3s;
    margin-top: 0.8rem;
    box-shadow: 0 8px 20px rgba(255, 0, 55, 0.3);
}

.auth-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(255, 0, 55, 0.5);
    gap: 18px;
    letter-spacing: 0.5px;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-footer p {
    color: #aaa;
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    transition: 0.2s;
    border-bottom: 1px dashed transparent;
}

.auth-footer a:hover {
    color: #ff6680;
    border-bottom-color: var(--primary);
}


footer {
    text-align: center;
    padding: 2rem 8%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto;
    font-size: 0.85rem;
    color: #777;
}

#errorAuth{
    text-align: center;
    color: red;
    margin: 20px;
    font-weight: bold;
}

#menu-auth { 
    display: flex; 
    list-style: none; 
    gap: 2rem; 
}

#menu-auth a { 
    text-decoration: none;
    color: #ccc; 
    transition: 0.3s; 
}

#menu-auth a:hover, #menu-auth a.active { 
    color: var(--primary); 
    text-shadow: 0 0 10px var(--primary);
}

/* ANIMATION */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(35px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem 5%;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.2rem;
    }
    .logo {
        font-size: 1.5rem;
    }
    .auth-card {
        padding: 1.8rem 1.5rem;
        margin: 0 1rem;
    }
    .auth-header h2 {
        font-size: 1.7rem;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 1.5rem 1.2rem;
    }
    .input-group input {
        padding: 12px 14px;
    }
}