/* =========================================================
   LOGIN.CSS - Diseño Premium SSETEC
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

/* Paleta, texto y transición ya vienen de design-tokens.css (--primary, --accent,
   --success, --danger, --text-dark, --text-muted, --transition, etc.). Aquí solo
   se declaran los alias propios de esta pantalla. */
:root {
    --white: #ffffff;
    --gray-100: #f3f4f6;
    --radius: 16px;
    --shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

html, body {
    height: 100%;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    overflow: hidden;
}

/* ---- FONDO ANIMADO ---- */
body {
    background: linear-gradient(135deg, #0f2537 0%, #1a3a52 40%, #16496a 70%, #1e5f80 100%);
    position: relative;
}

.bg-animated {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
    animation: floatBlob 10s ease-in-out infinite;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #3b82f6, #1d4ed8);
    top: -150px;
    left: -100px;
    animation-delay: 0s;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #10b981, #059669);
    bottom: -100px;
    right: -80px;
    animation-delay: 3s;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #6366f1, #4338ca);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 6s;
}

@keyframes floatBlob {
    0%, 100% { transform: scale(1) translateY(0px); }
    50% { transform: scale(1.1) translateY(-30px); }
}

/* ---- LAYOUT PRINCIPAL ---- */
.login-wrapper {
    display: flex;
    height: 100vh;
    position: relative;
    z-index: 1;
}

/* ---- PANEL IZQUIERDO ---- */
.login-info-panel {
    flex: 0 0 45%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 50px 60px;
    color: var(--white);
    background: rgba(15, 37, 55, 0.3);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.info-logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.info-logo-icon {
    width: 55px;
    height: 55px;
    background: var(--accent);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4); }
    50% { box-shadow: 0 8px 35px rgba(59, 130, 246, 0.7); }
}

.info-logo-text {
    display: flex;
    flex-direction: column;
}

.info-title {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--white);
}

.info-subtitle {
    font-size: 11px;
    opacity: 0.7;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.info-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 0;
}

.info-content h2 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--white);
}

.info-content p {
    font-size: 16px;
    line-height: 1.7;
    opacity: 0.8;
    margin-bottom: 35px;
    color: rgba(255, 255, 255, 0.85);
}

.info-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.info-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition);
}

.info-features li:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(6px);
}

.info-features li i {
    color: var(--success);
    font-size: 18px;
    flex-shrink: 0;
}

.info-footer {
    font-size: 13px;
    opacity: 0.5;
    text-align: center;
}

/* ---- PANEL DERECHO (FORMULARIO) ---- */
.login-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 60px;
}

.login-card {
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    border-radius: var(--radius);
    padding: 50px 45px;
    box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.1);
    animation: slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.card-header {
    text-align: center;
    margin-bottom: 36px;
}

.card-avatar {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: var(--white);
    box-shadow: 0 10px 30px rgba(26, 58, 82, 0.3);
}

.card-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

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

/* ---- ALERTA DE ERROR ---- */
.alert-error {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid var(--danger);
    color: #b91c1c;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 24px;
    animation: shakeX 0.4s ease;
}

@keyframes shakeX {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

/* ---- FORMULARIO ---- */
.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.form-group label i {
    color: var(--accent);
    font-size: 14px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 50px 14px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text-dark);
    background: #fafafa;
    transition: var(--transition);
    outline: none;
}

.input-wrapper input::placeholder {
    color: #a8b3c4;
    font-size: 14px;
}

.input-wrapper input:focus {
    border-color: var(--accent);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color var(--transition);
    font-size: 16px;
}

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

/* ---- BOTÓN SUBMIT ---- */
.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 25px rgba(26, 58, 82, 0.35);
}

.submit-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(26, 58, 82, 0.45);
}

.submit-btn:active { transform: translateY(0); }
.submit-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

/* ---- AYUDA ---- */
.login-help {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12.5px;
    color: var(--text-muted);
    background: var(--gray-100);
    border-radius: 8px;
    padding: 12px 14px;
    line-height: 1.5;
}

.login-help i {
    color: var(--accent);
    margin-top: 1px;
    flex-shrink: 0;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
    .login-info-panel { display: none; }
    .login-form-panel { padding: 30px 20px; }
    body { overflow: auto; }
}

@media (max-width: 480px) {
    .login-card { padding: 35px 25px; }
    .card-header h1 { font-size: 24px; }
}