/* ==========================================
   TEMA AVEX - ACESSO SEGURO
   ========================================== */
:root {
    --primary: #003d4c;      
    --accent: #e87722;       
    --accent-hover: #cf661a; 
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }

body {
    background: linear-gradient(rgba(0, 61, 76, 0.95), rgba(0, 61, 76, 0.95)), 
                url('https://images.unsplash.com/photo-1454165833767-027ff33027ef?auto=format&fit=crop&q=80&w=1500');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: auto;
}

.login-container {
    background: rgba(0, 0, 0, 0.15); 
    backdrop-filter: blur(3px); 
    -webkit-backdrop-filter: blur(3px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.3); 
    border-left: 1px solid rgba(255, 255, 255, 0.3); 
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    z-index: 2;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5); 
    pointer-events: auto;
}

.login-header { text-align: center; margin-bottom: 30px; }
.login-header img { height: 60px; margin-bottom: 15px; filter: drop-shadow(0px 0px 8px rgba(232, 119, 34, 0.4)); }
.login-header h3 { font-size: 1.5rem; font-weight: 600; color: #ffffff; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.login-header p { color: #d8dfe1; font-size: 0.9rem; margin-top: 5px; text-shadow: 0 1px 2px rgba(0,0,0,0.5); }

.alert {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #fca5a5;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
}

.input-group { position: relative; margin-bottom: 20px; }
.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #d8dfe1;
    font-size: 0.85rem;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.input-group i { position: absolute; left: 15px; top: 38px; color: #a0aab2; }
.input-group input {
    width: 100%;
    padding: 14px 15px 14px 45px;
    background: rgba(0, 0, 0, 0.3); 
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}
.input-group input:focus {
    outline: none;
    background: rgba(0, 0, 0, 0.5);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(232, 119, 34, 0.25);
}
.input-group input::placeholder { color: rgba(255, 255, 255, 0.5); }

.forgot-password { text-align: right; margin-top: -10px; margin-bottom: 20px; }
.forgot-password a {
    color: #f4f4f4;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.3s;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.forgot-password a:hover { color: var(--accent); text-decoration: underline; }

.btn-login {
    width: 100%;
    padding: 14px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}
.btn-login:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(232, 119, 34, 0.6);
}

/* ==========================================
   ALERTAS DE SUCESSO E LINKS DE VOLTAR
   ========================================== */
.alert-sucesso {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.5);
    color: #6ee7b7;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
}

.voltar-link {
    color: #d8dfe1; 
    text-decoration: none; 
    font-size: 0.9rem; 
    transition: color 0.3s; 
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    display: inline-block;
}

.voltar-link:hover {
    color: var(--accent);
}