/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color:#441a5a;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
}

/* Animação de fundo com ondas ciano */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent 0%, 
        rgba(0, 255, 255, 0.05) 25%, 
        transparent 50%, 
        rgba(0, 255, 255, 0.03) 75%, 
        transparent 100%);
    animation: waveMove 20s ease-in-out infinite;
    z-index: -1;
}

@keyframes waveMove {
    0%, 100% { transform: translate(-25%, -25%) rotate(0deg); }
    25% { transform: translate(-30%, -20%) rotate(90deg); }
    50% { transform: translate(-20%, -30%) rotate(180deg); }
    75% { transform: translate(-25%, -25%) rotate(270deg); }
}

/* Container principal */
.auth-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Card de autenticação */
.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px 30px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
    animation: cardFloat 6s ease-in-out infinite;
    transition: all 0.3s ease;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg at 50% 50%, 
        transparent 0deg, 
        rgba(0, 255, 255, 0.1) 60deg, 
        transparent 120deg, 
        rgba(0, 255, 255, 0.05) 180deg, 
        transparent 240deg, 
        rgba(0, 255, 255, 0.1) 300deg, 
        transparent 360deg);
    animation: borderRotate 15s linear infinite;
    z-index: -1;
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes borderRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.auth-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Header */
.auth-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.auth-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #000000 0%, #00ffff 50%, #000000 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease-in-out infinite;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.auth-header p {
    color: #666;
    font-size: 1rem;
    font-weight: 400;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Formulário */
.auth-form {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #000;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.form-group input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    outline: none;
    font-weight: 500;
}

.form-group input:focus {
    border-color: #00ffff;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 
        0 0 0 3px rgba(0, 255, 255, 0.1),
        0 4px 12px rgba(0, 255, 255, 0.15);
    transform: translateY(-2px);
}

.form-group input::placeholder {
    color: #999;
    font-weight: 400;
}

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.6s ease;
    transform: translate(-50%, -50%);
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, #000000 0%, #00ffff 50%, #000000 100%);
    background-size: 200% 200%;
    color: white;
    animation: buttonGradient 3s ease-in-out infinite;
}

@keyframes buttonGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 255, 255, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(0, 0, 0, 0.1);
    color: #000;
}

.btn-outline:hover {
    border-color: #00ffff;
    color: #00ffff;
    background: rgba(0, 255, 255, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 255, 255, 0.1);
}

.btn-block {
    width: 100%;
    margin-bottom: 15px;
}

/* Links de autenticação */
.auth-links {
    text-align: center;
    margin-bottom: 30px;
}

.auth-links p {
    margin-bottom: 10px;
    color: #666;
    font-size: 0.9rem;
}

.auth-links a {
    color: #00ffff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.auth-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #00ffff;
    transition: width 0.3s ease;
}

.auth-links a:hover::after {
    width: 100%;
}

.auth-links a:hover {
    color: #000;
    transform: translateY(-1px);
}

/* Divisor */
.auth-divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 0, 0, 0.1) 20%, 
        rgba(0, 0, 0, 0.1) 80%, 
        transparent 100%);
}

.auth-divider span {
    background: #ffffff;
    padding: 0 20px;
    color: #999;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* Opções de autenticação */
.auth-options {
    margin-top: 30px;
}

/* Mensagens de alerta */
.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin: 20px;
    font-weight: 500;
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 400px;
    z-index: 1000;
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.alert-error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.2);
    color: #28a745;
}

/* Ícones */
.fas {
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Responsividade */
@media (max-width: 480px) {
    .auth-container {
        padding: 15px;
    }
    
    .auth-card {
        padding: 30px 20px;
        border-radius: 20px;
    }
    
    .auth-header h1 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 14px 20px;
        font-size: 0.95rem;
    }
    
    .alert {
        position: fixed;
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        margin: 0;
    }
}

/* Animação de entrada da página */
@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-container {
    animation: pageEnter 0.8s ease-out;
}

/* Efeitos de hover para melhorar interatividade */
.form-group {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.btn-primary { animation-delay: 0.3s; }
.auth-links { animation-delay: 0.4s; }
.auth-options { animation-delay: 0.5s; }

.auth-logo {
    text-align: center;
    margin-bottom: 20px; /* Ajuste conforme necessário */
}

.auth-logo img {
    max-width: 180px; /* Tamanho máximo para desktop */
    height: auto;
    margin-bottom: 20px;
}

@media (max-width: 480px) {
    .auth-logo img {
        max-width: 120px; /* Tamanho menor para celular */
        margin-bottom: 15px;
    }
}

.auth-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #000000 0%, #00ffff 50%, #000000 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease-in-out infinite;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.auth-header p {
    color: #666;
    font-size: 1rem;
    font-weight: 400;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}