:root {
    --primary-color: #2b3952;
    --accent-color: #EEC693; 
    --bg-main: #f8fafc;
    --surface: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow: none;
    --transition: all 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 24px;
}

.login-card {
    background: var(--surface);
    padding: 3rem;
    border-radius: 1.5rem;
    width: 100%;
    border: 1px solid var(--border);
    animation: fadeInUp 0.6s ease-out;
}

.header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.logo-wrapper i {
    color: var(--accent-color);
}

.header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.header p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 4px;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

/* Integración de iconos estilo sistemacuentas pero con colores de asistencia */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-wrapper input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    font-family: inherit;
    font-size: 1rem;
    color: var(--primary-color);
    transition: all 0.2s;
    background: var(--surface);
    outline: none;
    height: 52px;
}

.input-wrapper:focus-within input {
    border-color: var(--primary-color);
}

.input-wrapper input::placeholder {
    font-size: 0.85rem;
    color: var(--text-muted);
    opacity: 0.6;
}

/* Eliminado prefix-icon focus */

.btn-toggle-password {
    position: absolute;
    right: 1rem;
    cursor: pointer;
    color: var(--text-muted);
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    transition: color 0.2s;
    z-index: 10;
}

.btn-toggle-password:hover {
    color: var(--primary-color);
}

.btn-login {
    width: 100%;
    padding: 0.875rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-login:hover {
    background: #1e293b;
    transform: translateY(-1px);
}

.error-text {
    color: var(--primary-color);
    font-size: 0.75rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400; /* Más delgado */
    opacity: 0.8;
}

.error-text svg {
    width: 12px !important; /* Forzado al mínimo */
    height: 12px !important;
    stroke-width: 2px;
}

.footer {
    margin-top: 2.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}

.footer strong {
    display: none;
}

/* Chrome/Safari autofill override */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--primary-color) !important;
    -webkit-box-shadow: 0 0 0px 1000px var(--surface) inset !important;
}
