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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #0a0a0f;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.login-card {
    background: #14141e;
    border: 1px solid #2a2a3a;
    border-radius: 1.25rem;
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
}

.login-card h1 {
    color: #f0f0f5;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.25rem;
}

.login-card .subtitle {
    color: #8888a0;
    text-align: center;
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    color: #c0c0d0;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.375rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #1a1a28;
    border: 1px solid #2e2e42;
    border-radius: 0.75rem;
    color: #f0f0f5;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.form-group input:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.25);
}

.form-group input::placeholder {
    color: #555570;
}

.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus {
    -webkit-text-fill-color: #f0f0f5;
    -webkit-box-shadow: 0 0 0 30px #1a1a28 inset;
    transition: background-color 5000s ease-in-out 0s;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.input-wrapper input {
    padding-right: 2.75rem;
}

.toggle-senha {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #555570;
    cursor: pointer;
    font-size: 1.15rem;
    padding: 6px;
    line-height: 1;
    border-radius: 0.5rem;
    transition: color 0.2s, background 0.2s;
}

.toggle-senha:hover {
    color: #a78bfa;
    background: rgba(124, 58, 237, 0.1);
}

.btn-login {
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    margin-top: 0.5rem;
}

.btn-login:hover {
    opacity: 0.9;
}

.btn-login:active {
    transform: scale(0.98);
}

.btn-login:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.erro {
    background: #2d1b1b;
    border: 1px solid #5c2a2a;
    color: #f87171;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
    text-align: center;
    display: none;
}

.erro.visible {
    display: block;
}

.footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.75rem;
    color: #555570;
}

@media (max-width: 480px) {
    .login-card {
        padding: 1.75rem 1.25rem;
    }
}
