:root {
    --primary-color: #357ABD;
    --primary-hover: #2A6095;
    --bg-color: #F0F2F5;
    --text-color: #34495E;
    --error-color: #C0392B;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    user-select: none; /* Impede seleção de texto */
}

.login-container {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 380px;
    transform: translateY(0);
    transition: transform 0.3s;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.lock-icon {
    width: 60px;
    height: 60px;
    background: #EAF2F8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.lock-icon svg {
    width: 30px;
    height: 30px;
    stroke: var(--primary-color);
}

h2 {
    color: var(--text-color);
    margin: 0 0 5px 0;
    font-size: 1.5rem;
}

p {
    color: #7F8C8D;
    font-size: 0.9rem;
    margin: 0;
}

.input-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
}

input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #DDE2E7;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: all 0.2s;
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(53, 122, 189, 0.15);
}

button {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
}

button:hover {
    background-color: var(--primary-hover);
}

/* Animação de Erro (Tremida) */
.shake {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

.message-box {
    margin-top: 15px;
    font-size: 0.9rem;
    text-align: center;
    min-height: 20px;
    color: var(--error-color);
}

/* Spinner de carregamento */
.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}