* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    height: 100vh;
    background: linear-gradient(135deg, #2c3e50 0%, #162433 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card,
.auth-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    padding: 45px 35px;
    border-radius: 14px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
    transition: 0.3s ease;
}

.login-card h1,
.auth-card h1 {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #2c3e50;
    letter-spacing: 1px;
}

.auth-card p {
    text-align: center;
    font-size: 13px;
    color: #666;
    margin-bottom: 25px;
}

.input-group {
    position: relative;
    margin-bottom: 22px;
}

.input-group input {
    width: 100%;
    padding: 14px 45px 14px 14px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
    transition: 0.3s;
}

.input-group input:focus {
    border-color: #2c3e50;
    box-shadow: 0 0 0 2px rgba(44, 62, 80, 0.2);
    outline: none;
}

/* Campo código MFA */
.auth-card .input-group input {
    font-size: 18px;
    letter-spacing: 6px;
    text-align: center;
}

/* Ícones */
.input-group i {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

.toggle-password {
    cursor: pointer;
}

.toggle-password:hover {
    color: #2c3e50;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    border: none;
    background: #2c3e50;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
}

.btn-primary:hover {
    background: #1f2d3a;
}

.btn-secondary {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #2c3e50;
    background: transparent;
    color: #2c3e50;
    font-size: 13px;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}

.btn-secondary:hover {
    background: #f4f6f8;
}

.link-action {
    background: none;
    border: none;
    color: #2c3e50;
    font-size: 13px;
    margin-top: 15px;
    cursor: pointer;
    display: block;
    text-align: center;
}

.link-action:hover {
    text-decoration: underline;
}

.alert-box {
    position: absolute;
    top: 40px;
    width: 100%;
    max-width: 420px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
}

.alert-danger {
    background: #ffe5e5;
    border: 1px solid #ff9999;
    color: #b30000;
}

.alert-warning {
    background: #ff9800;
    color: #fff;
}

.hidden {
    display: none;
}

.dev {
    position: fixed;
    bottom: 15px;
    text-align: center;
    color: #fff;
    font-size: 12px;
}

.dev a {
    color: #fff;
    text-decoration: underline;
}

@media (max-width: 480px) {
    .login-card,
    .auth-card {
        margin: 0 15px;
        padding: 35px 25px;
    }
}
