/* ==================== VARIABLES APPLE STYLE ==================== */
:root {
    --primary-color: #1074ae;       /* Tu azul corporativo */
    --accent-color: #007aff;        /* Azul iOS */
    --bg-color: #f5f5f7;            /* Fondo gris claro Apple */
    --card-bg: rgba(255, 255, 255, 0.85); /* Efecto vidrio */
    --text-main: #1d1d1f;           /* Negro suave */
    --text-secondary: #86868b;      /* Gris texto */
    --input-bg: #ffffff;
    --input-border: #d2d2d7;
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.08);
    --radius-xl: 24px;
    --radius-m: 12px;
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ==================== RESET & BASE ==================== */
* { box-sizing: border-box; outline: none; }

body {
    font-family: var(--font-stack);
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at 10% 20%, rgb(242, 246, 252) 0%, rgb(228, 233, 242) 90%);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* ==================== MAIN CARD ==================== */
.login-wrapper {
    width: 100%;
    max-width: 440px;
    padding: 20px;
}

.login-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    padding: 40px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: transform 0.3s ease;
}

.login-card:hover { transform: translateY(-5px); }

/* ==================== LOGO & HEADER ==================== */
.logo-area { margin-bottom: 25px; }
.logo-area img {
    max-width: 150px; /* Ajustado para que se vea bien */
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.05));
}

.header-text h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.header-text p {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0 0 30px 0;
    line-height: 1.4;
}

/* ==================== FORM ==================== */
.form-group { margin-bottom: 20px; text-align: left; }

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: block;
    margin-left: 4px;
}

.input-field {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 1px solid var(--input-border);
    border-radius: var(--radius-m);
    background: var(--input-bg);
    transition: all 0.2s ease;
    color: var(--text-main);
}

.input-field:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(16, 116, 174, 0.15);
}

/* ==================== CHECKBOX ==================== */
.remember-box {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
}

.remember-box input {
    margin-right: 10px;
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
}

/* ==================== BUTTON ==================== */
.btn-login {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--primary-color), #0d5c8a);
    border: none;
    border-radius: var(--radius-m);
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(16, 116, 174, 0.3);
}

.btn-login:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 15px rgba(16, 116, 174, 0.4);
}

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

/* ==================== ALERTS ==================== */
.alert-error {
    background-color: #fff2f2;
    color: #d32f2f;
    border: 1px solid #ffcdd2;
    padding: 12px;
    border-radius: var(--radius-m);
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
}

/* ==================== SOCIAL & FOOTER ==================== */
.social-divider {
    margin: 30px 0 20px;
    border-top: 1px solid #e5e5e5;
    position: relative;
}

.social-divider span {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #fbfbfd; /* Color aprox del fondo de la tarjeta */
    padding: 0 10px;
    color: var(--text-secondary);
    font-size: 12px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5f5f7;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 18px;
}

/* EFECTOS DE COLOR AL PASAR EL MOUSE (Marcas) */
.social-btn:hover { color: white; transform: translateY(-3px); }

.social-btn.facebook:hover  { background-color: #1877F2; }
.social-btn.instagram:hover { background-color: #E4405F; }
.social-btn.twitter:hover   { background-color: #000000; }
.social-btn.linkedin:hover  { background-color: #0A66C2; }

.footer-copy {
    margin-top: 30px;
    font-size: 12px;
    color: #999;
}

/* ==================== CAPTCHA ==================== */
#captchaSection {
    background: #f9f9fb;
    padding: 15px;
    border-radius: var(--radius-m);
    margin-bottom: 20px;
    border: 1px dashed #ccc;
}
#captchaQuestion { font-weight: bold; color: var(--primary-color); margin-bottom: 5px; }

/* Responsive adjustments */
@media (max-width: 480px) {
    .login-card { padding: 30px 20px; }
}