* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 50%, #1a1a1a 100%);
    background-size: 200% 200%;
    animation: gradientFlow 10s ease infinite;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.auth-container {
    display: flex;
    gap: 20px;
    max-width: 1000px;
    width: 100%;
    padding: 20px;
    perspective: 1000px;
}

.auth-card {
    background: #2c2c2c;
    border-radius: 15px;
    display: flex;
    width: 50%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s ease, opacity 0.3s ease;
    border: 2px solid #e74c3c;
    opacity: 0.5;
    transform: rotateY(20deg);
    overflow: hidden;
}

.auth-card.active {
    opacity: 1;
    transform: rotateY(0deg);
    z-index: 10;
}

.card-image {
    width: 120px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.login-image {
    background-image: url('/img/balada2.avif');
}

.cadastro-image {
    background-image: url('/img/music-1.avif');
}

.auth-card:hover .card-image {
    transform: scale(1.05);
}

.card-content {
    padding: 30px;
    flex: 1;
}

.auth-card h2 {
    text-align: center;
    font-size: 1.8rem;
    color: #e74c3c;
    margin-bottom: 20px;
    text-shadow: 0 1px 5px rgba(231, 76, 60, 0.3);
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    background: #3a3a3a;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    background: #4a4a4a;
    outline: 2px solid #3498db;
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.5);
}

.password-group {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.2rem;
    color: #ccc;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #e74c3c;
}

.btn {
    background: linear-gradient(45deg, #e74c3c, #3498db, #2ecc71);
    background-size: 300% 300%;
    color: #fff;
    padding: 12px;
    width: 100%;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: gradientFlow 4s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn:hover {
    background-position: 100% 0;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.5);
}

.switch-text {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #ccc;
}

.switch-btn {
    color: #e74c3c;
    cursor: pointer;
    font-weight: 600;
    transition: color 0.3s ease;
}

.switch-btn:hover {
    color: #3498db;
}

/* Modal de Alerta */
.custom-alert {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.custom-alert.active {
    opacity: 1;
    pointer-events: all;
}

.custom-alert-content {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.3);
    border: 2px solid #e74c3c;
    animation: bounceIn 0.5s ease forwards;
}

.alert-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    color: #e74c3c;
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.3s, transform 0.3s;
}

.alert-close:hover {
    color: #fff;
    transform: rotate(90deg);
}

.alert-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.alert-icon {
    font-size: 2rem;
    margin-right: 15px;
    animation: pulse 1.5s infinite;
}

.alert-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #e74c3c;
}

.alert-body p {
    font-size: 1rem;
    color: #fff;
    line-height: 1.5;
}

/* Modal de Carregamento */
.loading-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-content {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e74c3c;
    border-top: 4px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

.loading-text p {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.loading-text span {
    font-size: 14px;
    color: #666;
}

.hidden {
    display: none;
}

/* Animações */
@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes bounceIn {
    0% { transform: scale(0.5); opacity: 0; }
    60% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsividade */
@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
        padding: 10px;
    }

    .auth-card {
        width: 100%;
        margin-bottom: 20px;
        flex-direction: column;
    }

    .card-image {
        width: 100%;
        height: 150px;
    }

    .auth-card.active {
        transform: rotateY(0deg);
    }

    .auth-card:not(.active) {
        transform: translateY(20px);
        opacity: 0;
        position: absolute;
        width: 90%;
    }
}