/* ===== GERAL ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center; /* Agora sim: centraliza verticalmente */
    padding: 20px; /* Só um respiro pros lados em mobile */
}

/* ===== LOGIN BOX ===== */
.login-box {
    background: #fff;
    padding: 48px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    width: 100%;
    max-width: 420px;
    text-align: center;
    backdrop-filter: blur(10px); /* Toque premium */
}

.login-box h2 {
    margin-bottom: 32px;
    color: #333;
    font-size: 28px;
    font-weight: 700;
}

/* ===== INPUTS COM ÍCONES ===== */
.input-group {
    position: relative;
    width: 100%;
    margin: 22px 0;
}

.input-group .icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: #764ba2;
    opacity: 0.8;
    pointer-events: none;
    z-index: 1;
}

.input-group input {
    width: 100%;
    padding: 18px 18px 18px 56px; /* Mais espaço pro ícone */
    border-radius: 14px;
    border: 2px solid #e1e5e9;
    background: #f8f9ff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #764ba2;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(118, 75, 162, 0.15);
}

.input-group input::placeholder {
    color: #aaa;
}

/* ===== ERRO ===== */
.erro {
    color: #e74c3c;
    background: #ffebee;
    padding: 14px;
    border-radius: 12px;
    margin: 20px 0;
    font-size: 15px;
    font-weight: 500;
}

/* ===== BOTÃO ===== */
.login-box button {
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 14px;
    background: #764ba2;
    color: #fff;
    font-weight: 700;
    font-size: 17px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(118, 75, 162, 0.3);
}

.login-box button:hover {
    background: #5f3a87;
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(118, 75, 162, 0.4);
}

/* ===== RESPONSIVO ===== */
@media (max-width: 480px) {
    body {
        padding: 16px;
    }

    .login-box {
        padding: 40px 28px;
    }

    .login-box h2 {
        font-size: 26px;
    }

    .input-group input {
        padding: 18px 18px 18px 52px;
    }
}