/* CSS Login - Agenda2 */

/* Variables de colores (importadas desde generico.css) */
:root {
    --primary-color: #00a8cc;
    --secondary-color: #0077be;
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
    --border-color: #e1e5e9;
    --error-bg: #fee;
    --error-color: #c33;
    --error-border: #fcc;
    --success-bg: #efe;
    --success-color: #3c3;
    --success-border: #cfc;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Contenedor del login */
.login-container {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
}

/* Header del login */
.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo {
    margin-bottom: 20px;
}

.login-logo img {
    height: 80px;
    width: auto;
    object-fit: contain;
    margin-bottom: 15px;
}

.login-header h1 {
    color: var(--text-dark);
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 600;
}

.login-header p {
    color: var(--text-light);
    font-size: 14px;
}

/* Formulario */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus {
    font-size: 16px !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    -webkit-text-fill-color: var(--text-dark) !important;
    transition: background-color 9999s ease-in-out 0s;
}

/* Input con iconos */
.input-icon {
    position: relative;
}

.input-icon input {
    padding-left: 45px;
}

.input-icon::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
}

.input-icon.email::before {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23667eea"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>') center/contain no-repeat;
}

.input-icon.password::before {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23667eea"><path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"/></svg>') center/contain no-repeat;
}

/* Checkbox remember */
.remember-group {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.remember-group input[type="checkbox"] {
    margin-right: 8px;
    width: auto;
}

.remember-group label {
    font-size: 14px;
    color: var(--text-light);
    cursor: pointer;
    margin: 0;
}

/* Botón principal */
.btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

/* Enlace de recuperar contraseña */
.forgot-password {
    text-align: center;
    margin-top: 20px;
}

.forgot-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.forgot-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
    transform: translateY(-1px);
}

/* Mensajes */
.error-message {
    background: var(--error-bg);
    color: var(--error-color);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--error-border);
    font-size: 14px;
    text-align: center;
}

.success-message {
    background: var(--success-bg);
    color: var(--success-color);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--success-border);
    font-size: 14px;
    text-align: center;
}

/* Responsive */
@media (max-width: 480px) {
    .login-container {
        margin: 20px;
        padding: 30px 20px;
    }
    
    .login-logo img {
        height: 60px;
    }
    
    .login-header h1 {
        font-size: 24px;
    }
    
    .form-group input {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .input-icon input {
        padding-left: 40px;
    }
    
    .input-icon::before {
        left: 12px;
        width: 18px;
        height: 18px;
    }
}
