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

:root {
    --primary: #3f6ad8;
    --primary-dark: #2c4fa3;
    --border: #c8d8f0;
    --text-muted: #5a7a9e;
    --bg-right: rgb(255, 255, 255);
}

html, body {
    height: 100%;
    width: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    flex-direction: row;
}

/* Panel izquierdo */
.login-left {
    width: 60%;
    position: relative;
    overflow: hidden;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-justify-content: flex-end;
    justify-content: flex-end;
    padding: 60px 50px;
    min-height: 100vh;
    min-height: -webkit-fill-available;
}

/* Imagen de fondo con Ken Burns */
.login-left .bg-image {
    position: absolute;
    inset: 0;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: var(--bg-login);
    background-size: cover;
    background-position: center top;
    -webkit-animation: kenburns 20s ease-in-out infinite alternate;
    animation: kenburns 20s ease-in-out infinite alternate;
    will-change: transform;
}

@-webkit-keyframes kenburns {
    0%   { -webkit-transform: scale(1)    translateX(0)     translateY(0);     transform: scale(1)    translateX(0)     translateY(0); }
    25%  { -webkit-transform: scale(1.08) translateX(-1%)   translateY(1%);    transform: scale(1.08) translateX(-1%)   translateY(1%); }
    50%  { -webkit-transform: scale(1.12) translateX(1%)    translateY(-1%);   transform: scale(1.12) translateX(1%)    translateY(-1%); }
    75%  { -webkit-transform: scale(1.07) translateX(-0.5%) translateY(0.5%);  transform: scale(1.07) translateX(-0.5%) translateY(0.5%); }
    100% { -webkit-transform: scale(1.15) translateX(0.5%)  translateY(-0.5%); transform: scale(1.15) translateX(0.5%)  translateY(-0.5%); }
}

@keyframes kenburns {
    0%   { transform: scale(1)    translateX(0)     translateY(0); }
    25%  { transform: scale(1.08) translateX(-1%)   translateY(1%); }
    50%  { transform: scale(1.12) translateX(1%)    translateY(-1%); }
    75%  { transform: scale(1.07) translateX(-0.5%) translateY(0.5%); }
    100% { transform: scale(1.15) translateX(0.5%)  translateY(-0.5%); }
}

/* Overlay oscuro sobre la imagen */
.login-left .bg-overlay {
    position: absolute;
    inset: 0;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 20, 45, 0.15) 0%,
        rgba(10, 20, 45, 0.72) 100%
    );
    z-index: 1;
}

.login-left .content {
    position: relative;
    z-index: 2;
}

.login-left .logo-icon {
    width: 68px;
    height: 68px;
    background: rgba(63, 106, 216, 0.3);
    border: 2px solid rgba(255,255,255,0.35);
    border-radius: 50%;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    margin-bottom: 22px;
}

.login-left .logo-icon i {
    font-size: 28px;
    color: #ffffff;
}

.login-left h1 {
    font-size: 52px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 6px;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 14px;
}

.login-left .divider {
    width: 50px;
    height: 3px;
    background: var(--primary);
    margin-bottom: 16px;
    border-radius: 2px;
}

.login-left p {
    font-size: 15px;
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
}

/* Panel derecho */
.login-right {
    width: 40%;
    background: var(--bg-right);
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-align-items: center;
    align-items: center;
    padding: 70px 40px;
    min-height: 100vh;
    min-height: -webkit-fill-available;
}

.login-box {
    width: 100%;
    max-width: 480px;
}

.login-right h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1c2a4a;
    margin-bottom: 8px;
}

.login-right .subtitle {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 44px;
}

.form-group {
    margin-bottom: 26px;
}

.form-group label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #2c4270;
    margin-bottom: 9px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    color: #7a9cbf;
    font-size: 15px;
}

.form-control {
    width: 100%;
    padding: 15px 16px 15px 46px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    color: #1c2a4a;
    background: rgba(255,255,255,0.75);
    -webkit-transition: all 0.2s;
    transition: all 0.2s;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.form-control:focus {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(63, 106, 216, 0.15);
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    font-size: 12px;
    color: #dc3545;
    margin-top: 6px;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    gap: 4px;
}

.alert-suspended {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 24px;
    font-size: 14px;
    color: #856404;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    gap: 8px;
}

.alert-error {
    background: #fde8e8;
    border: 1px solid #f5a0a0;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 24px;
    font-size: 14px;
    color: #c53030;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    gap: 8px;
}

.btn-login {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    -webkit-transition: all 0.2s;
    transition: all 0.2s;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
    -webkit-appearance: none;
    appearance: none;
}

.btn-login:hover {
    background: var(--primary-dark);
    -webkit-transform: translateY(-1px);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(63, 106, 216, 0.35);
}

.btn-login:active {
    -webkit-transform: translateY(0);
    transform: translateY(0);
}

.login-footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #b0c8e8;
    font-size: 12px;
    color: #7a9cbf;
    text-align: center;
}

@media (max-width: 900px) {
    body { -webkit-flex-direction: column; flex-direction: column; }
    .login-left { width: 100%; min-height: 260px; padding: 40px 30px; }
    .login-left h1 { font-size: 36px; }
    .login-right { width: 100%; padding: 40px 30px; min-height: auto; }
}