* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* ===== ANIMAÇÃO DE PASTAS NO FUNDO ===== */
.folders-background {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}
.folder { position: absolute; font-size: 4rem; opacity: 0.15; animation: float 20s infinite ease-in-out; filter: blur(1px); }
.folder-1 { top: 10%; left: 10%; animation-delay: 0s; }
.folder-2 { top: 70%; left: 20%; animation-delay: 3s; }
.folder-3 { top: 30%; left: 80%; animation-delay: 6s; }
.folder-4 { top: 60%; left: 70%; animation-delay: 9s; }
.folder-5 { top: 20%; left: 50%; animation-delay: 12s; }
.folder-6 { top: 80%; left: 85%; animation-delay: 15s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-30px) rotate(5deg); }
    50% { transform: translateY(-60px) rotate(-5deg); }
    75% { transform: translateY(-30px) rotate(3deg); }
}

/* ===== CONTAINER DE LOGIN ===== */
.login-container { position: relative; z-index: 10; width: 100%; max-width: 450px; padding: 20px; }
.login-box {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 50px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.6s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.3);
}
@keyframes slideIn { from { opacity: 0; transform: translateY(-30px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* ===== LOGO E TÍTULO ===== */
.logo-section { text-align: center; margin-bottom: 40px; }
.logo-icon { font-size: 4rem; margin-bottom: 15px; animation: pulse 2s infinite; display: inline-block; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
.logo-section h1 { font-size: 1.8rem; color: #333; margin-bottom: 8px; font-weight: 600; }
.logo-section p { color: #666; font-size: 0.95rem; }

/* ===== ALERTAS ===== */
.alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 24px; font-size: 0.9rem; animation: fadeIn 0.4s; font-weight: 500; }
.alert-danger { background: #fee2e2; color: #991b1b; border-left: 4px solid #dc2626; }
.alert-success { background: #d1fae5; color: #065f46; border-left: 4px solid #10b981; }
.alert-info { background: #dbeafe; color: #1e40af; border-left: 4px solid #3b82f6; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* ===== FORMULÁRIO ===== */
.login-form { margin-bottom: 30px; }
.input-group { margin-bottom: 24px; position: relative; }
.input-group label { display: block; margin-bottom: 8px; color: #444; font-weight: 500; font-size: 0.95rem; transition: color 0.3s; }
.input-group input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}
.input-group input:focus { outline: none; border-color: #667eea; background: white; box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1); }
.input-group input:focus + label, .input-group.focused label { color: #667eea; }

/* ===== BOTÃO ===== */
.btn-login {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    position: relative; overflow: hidden;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}
.btn-login::before {
    content: ''; position: absolute; top: 50%; left: 50%;
    width: 0; height: 0; border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}
.btn-login:hover::before { width: 300px; height: 300px; }
.btn-login:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5); }
.btn-login:active { transform: translateY(0); }
.btn-login .arrow { transition: transform 0.3s ease; position: relative; z-index: 1; }
.btn-login:hover .arrow { transform: translateX(5px); }
.btn-login span { position: relative; z-index: 1; }

/* ===== RODAPÉ ===== */
.footer-text { text-align: center; margin-top: 30px; padding-top: 20px; border-top: 1px solid #e0e0e0; }
.footer-text p { color: #888; font-size: 0.85rem; }

/* ===== RESPONSIVO ===== */
@media (max-width: 500px) {
    .login-box { padding: 40px 30px; }
    .logo-icon { font-size: 3rem; }
    .logo-section h1 { font-size: 1.5rem; }
    .folder { font-size: 3rem; }
}
@media (max-width: 350px) {
    .login-box { padding: 30px 20px; }
    .btn-login { font-size: 1rem; padding: 14px; }
}
