: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;
}

/* Header & Navigation */
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 { 
    color: var(--primary); 
    text-shadow: 0 0 10px var(--primary);
}

/* Signup Wrapper */
.signup-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    margin: 2rem 0;
}

/* Signup Card */
.signup-card {
    max-width: 580px;
    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;
}

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

/* Signup Header */
.signup-header {
    text-align: center;
    margin-bottom: 2rem;
}

.icon-wrapper {
    display: inline-block;
    border-radius: 50%;
    padding: 1rem;
    margin-bottom: 1rem;
}

.icon-wrapper i {
    font-size: 3rem;
    color: var(--primary);
    text-shadow: 0 0 12px rgba(255, 0, 55, 0.6);
    animation: float 3s ease-in-out infinite
}

.signup-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;
}

.signup-header h2 span {
    background: linear-gradient(135deg, #ff6680, var(--primary));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

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

/* Form Styles */
.signup-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.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);
}

.input-group input::placeholder {
    color: #555;
}

/* Signup Button */
.signup-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;
    width: 100%;
    box-shadow: 0 8px 20px rgba(255, 0, 55, 0.3);
    animation: buttonGlow 4s ease-in-out infinite alternate;
}

@keyframes buttonGlow {
    0% { box-shadow: 0 8px 20px rgba(255, 0, 55, 0.3); }
    25% { box-shadow: 0 8px 20px rgba(255, 119, 0, 0.35); }
    50% { box-shadow: 0 8px 20px rgba(255, 213, 0, 0.35); }
    75% { box-shadow: 0 8px 20px rgba(0, 255, 102, 0.35); }
    100% { box-shadow: 0 8px 20px rgba(0, 136, 255, 0.35); }
}

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

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

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

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

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

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

/* Page Footer */
.page-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;
    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(-30px);
    }
}

/* Responsive Design */
@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;
    }
    
    .signup-card {
        padding: 1.8rem 1.5rem;
        margin: 0 1rem;
    }
    
    .signup-header h2 {
        font-size: 1.7rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .signup-card {
        padding: 1.5rem 1.2rem;
    }
    
    .input-group input {
        padding: 12px 14px;
    }
    
    .signup-header h2 {
        font-size: 1.5rem;
    }
    
    .icon-wrapper i {
        font-size: 2.5rem;
    }
    
    .signup-btn {
        padding: 12px;
        font-size: 1rem;
    }
}