:root {
    --primary-color: #4A90E2;
    --secondary-color: #50E3C2;
    --accent-color: #F5A623;
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.25);
    --shadow-color: rgba(0, 0, 0, 0.2);
    --text-primary: white;
    --text-secondary: rgba(255, 255, 255, 0.8);
}

/* Reset e estilos gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.auth-page {
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: var(--text-primary);
}

/* Container principal */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 480px; /* Largura máxima reduzida */
    margin: 0 auto;
}

/* Cartão de login */
.auth-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid; /*var(--glass-border);*/
    border-radius: 24px;
    box-shadow: 
        0 20px 40px, /*var(--shadow-color),*/
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    padding: 40px 35px;
    width: 100%;
    animation: fadeIn 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

/* Efeito de brilho sutil */
.auth-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: shine 8s infinite linear;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Cabeçalho */
.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-logo {
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.auth-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--text-primary), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 400;
}

/* Alertas */
.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    animation: slideIn 0.3s ease-out;
    backdrop-filter: blur(10px);
}

.alert i {
    font-size: 18px;
    flex-shrink: 0;
}

.alert-error {
    background: linear-gradient(135deg, 
        rgba(231, 76, 60, 0.2), 
        rgba(192, 57, 43, 0.2));
    border-left: 4px solid #e74c3c;
    color: #ffcccc;
}

.alert-warning {
    background: linear-gradient(135deg, 
        rgba(241, 196, 15, 0.2), 
        rgba(243, 156, 18, 0.2));
    border-left: 4px solid #f1c40f;
    color: #fff3cd;
}

.alert-success {
    background: linear-gradient(135deg, 
        rgba(46, 204, 113, 0.2), 
        rgba(39, 174, 96, 0.2));
    border-left: 4px solid #2ecc71;
    color: #d4edda;
}

/* Formulário */
.auth-form {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.auth-form label {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-weight: 500;
    font-size: 15px;
    padding-left: 5px;
}

.auth-form label i {
    margin-right: 10px;
    color: var(--secondary-color);
    width: 20px;
    text-align: center;
}

/* Contêiner do input */
.auth-form .input-container {
    position: relative;
    width: 100%;
    max-width: 350px; /* Largura máxima reduzida */
    margin: 0 auto;
}

.auth-form input {
    width: 80%;
    padding: 16px 20px 16px 50px; /* Padding maior à esquerda para o ícone */
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.auth-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.auth-form input:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.12);
}

.auth-form input:focus {
    border-color: var(--secondary-color);
    box-shadow: 
        0 0 0 4px rgba(80, 227, 194, 0.15),
        0 8px 20px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Ícones dentro dos inputs */
.auth-form .input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
    font-size: 18px;
    z-index: 1;
    pointer-events: none;
}

/* Botão de mostrar senha */
.password-toggle {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--text-primary);
}

/* Texto de ajuda */
.form-help {
    margin-top: 10px;
    text-align: right;
}

.link {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.link:hover {
    color: var(--text-primary);
    text-decoration: underline;
    transform: translateX(2px);
}

/* Botão principal */
.btn-primary {
    background: linear-gradient(135deg, 
        var(--primary-color), 
        var(--secondary-color));
    color: white;
    border: none;
    border-radius: 16px;
    padding: 18px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    max-width: 350px; /* Largura máxima reduzida */
    margin: 0 auto;
    display: block;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 20px rgba(74, 144, 226, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 25px rgba(74, 144, 226, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 
        0 6px 15px rgba(74, 144, 226, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary i {
    margin-right: 10px;
    font-size: 18px;
}

/* Rodapé */
.auth-footer {
    margin-top: 30px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.note {
    line-height: 1.6;
    margin-bottom: 15px;
}

.note i {
    color: var(--secondary-color);
    margin-right: 8px;
}

.note strong {
    color: var(--text-primary);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 6px;
}

/* Efeitos de foco no input de senha */
.auth-form input:focus + .input-icon {
    color: var(--text-primary);
    transform: translateY(-50%) scale(1.1);
}

/* Animação de entrada */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .auth-container {
        padding: 15px;
    }
    
    .auth-card {
        padding: 30px 25px;
        border-radius: 20px;
    }
    
    .auth-header h1 {
        font-size: 24px;
    }
    
    .auth-subtitle {
        font-size: 14px;
    }
    
    .auth-form input {
        padding: 14px 18px 14px 46px;
        font-size: 15px;
    }
    
    .btn-primary {
        padding: 16px 25px;
        font-size: 15px;
    }
    
    .input-icon, .password-toggle {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 25px 20px;
        border-radius: 18px;
    }
    
    .auth-header h1 {
        font-size: 22px;
    }
    
    .auth-form .input-container,
    .btn-primary {
        max-width: 300px;
    }
}

/* Efeito de partículas (opcional) */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}