/* login.css */

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

body {
    font-family: 'Inter', sans-serif;
    background: #f0f2f5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 20px;
}

.login-wrap {
    display: flex;
    width: 100%;
    max-width: 860px;
    min-height: 520px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.12);
}

/* Panel izquierdo */
.login-brand {
    flex: 1;
    background: linear-gradient(145deg, #004d40 0%, #00695c 55%, #00897b 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 36px;
    position: relative;
    overflow: hidden;
}

.login-brand::before {
    content: '';
    position: absolute;
    width: 280px; height: 280px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    top: -80px; right: -80px;
}

.login-brand::after {
    content: '';
    position: absolute;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    bottom: -60px; left: -60px;
}

.login-brand-icon {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
    position: relative; z-index: 1;
}

.login-brand-icon i {
    font-size: 38px;
    color: rgba(255,255,255,0.9);
}

.login-brand-title {
    color: rgba(255,255,255,0.92);
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    position: relative;
    z-index: 1;
    letter-spacing: -0.3px;
}

.login-brand-sub {
    color: rgba(255,255,255,0.55);
    font-size: 13px;
    text-align: center;
    margin-top: 8px;
    position: relative;
    z-index: 1;
}

/* Panel derecho */
.login-form-panel {
    width: 380px;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 40px;
    flex-shrink: 0;
}

.login-logo {
    width: 200px;
    display: block;
    margin: 0 auto 4px;
}

.login-form-sub {
    font-size: 13px;
    color: #888;
    margin: 6px 0 32px;
    text-align: center;
}

/* Inputs */
.lf-group {
    margin-bottom: 20px;
}

.lf-group label {
    display: block !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #555 !important;
    margin-bottom: 6px !important;
    letter-spacing: 0.2px !important;
    position: static !important;
    transform: none !important;
    height: auto !important;
}

.lf-input-wrap {
    position: relative;
}

.lf-input-wrap i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #bbb;
    pointer-events: none;
    transition: color .2s;
}

.lf-input-wrap input {
    width: 100% !important;
    height: 44px !important;
    border: 1.5px solid #e4e4e4 !important;
    border-radius: 10px !important;
    padding: 0 14px 0 40px !important;
    font-size: 14px !important;
    font-family: 'Inter', sans-serif !important;
    color: #1a1a2e !important;
    background: #fafafa !important;
    outline: none !important;
    transition: border-color .2s, background .2s !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.lf-input-wrap input:focus {
    border-color: #00695c !important;
    background: #fff !important;
    box-shadow: none !important;
}

.lf-input-wrap:focus-within i {
    color: #00695c;
}

/* Botón login */
#entrar {
    width: 100%;
    height: 44px;
    background: #00695c;
    color: #fff !important;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background .2s, box-shadow .2s;
    text-transform: none;
    letter-spacing: 0;
    line-height: normal;
}

#entrar:hover { background: #004d40; box-shadow: 0 4px 16px rgba(0,105,92,0.25); }
#entrar i { font-size: 18px; color: #fff !important; }

/* Spinner */
.loading {
    display: flex;
    justify-content: center;
    margin-top: 14px;
}

.loading.hide { display: none !important; }
.loading img { width: 36px; }

/* Footer */
.login-footer {
    margin-top: 28px;
    font-size: 11px;
    color: #ccc;
    text-align: center;
}

/* Responsive */
@media (max-width: 640px) {
    .login-wrap {
        flex-direction: column;
        max-width: 400px;
        min-height: unset;
        border-radius: 16px;
    }
    .login-brand {
        padding: 28px 24px 24px;
        min-height: unset;
    }
    .login-brand-icon { width: 52px; height: 52px; margin-bottom: 12px; }
    .login-brand-icon i { font-size: 26px; }
    .login-logo { width: 160px; }
    .login-form-panel {
        width: 100%;
        padding: 32px 28px 36px;
    }
}
