* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #0a0a0a;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-x: hidden;
}

.auth-container {
    width: 100%;
    max-width: 400px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-tag {
    color: #d4af37;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 8px;
    display: block;
    opacity: 0;
    animation: fadeInTag 0.6s ease-out 0.2s forwards;
}

.auth-title {
    font-size: 30px;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInTitle 0.6s ease-out 0.5s forwards;
}


.auth-box {
    background: #141414;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transform: scale(0.85);
    animation: scaleUpCard 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.8s forwards, floatingCard 4s ease-in-out 1.5s infinite;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}


.auth-box:hover,
.auth-box:active {
    animation-play-state: paused; 
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.95), 0 0 25px rgba(212, 175, 55, 0.4);
    border-color: #d4af37;
}


.auth-tabs {
    display: flex;
    background: #1f1f1f;
    border-radius: 25px;
    padding: 4px;
    margin-bottom: 25px;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: #aaaaaa;
    padding: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: #d4af37;
    color: #000000;
    font-weight: 700;
    transform: scale(1.02);
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 13px;
    color: #cccccc;
    margin-bottom: 8px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.input-group input {
    width: 100%;
    background: #1f1f1f;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 15px;
    color: #ffffff;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.input-group input:focus {
    border-color: #d4af37;
    background: #252525;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.input-group input:focus + label,
.input-group input:focus ~ label {
    color: #d4af37;
}

/* Buttons */
.auth-submit-btn {
    width: 100%;
    background: #d4af37;
    color: #000000;
    border: none;
    padding: 15px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.auth-submit-btn:hover {
    background: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

.back-home-btn {
    display: block;
    text-align: center;
    background: transparent;
    color: #d4af37;
    border: 1px solid #d4af37;
    padding: 12px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 8px;
    text-decoration: none;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.back-home-btn:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-3px);
}


@keyframes fadeInTag {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInTitle {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleUpCard {
    from {
        opacity: 0;
        transform: scale(0.85) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes floatingCard {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px); 
    }
    100% {
        transform: translateY(0px); 
    }
}