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

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #f0f2f5 0%, #e2e8f0 100%);
    position: relative;
    overflow-x: hidden;
}

.login-container {
    width: 100%;
    max-width: 1100px;
    animation: fadeInUp 0.6s ease-out;
    position: relative;
    z-index: 1;
}

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

.login-wrapper {
    display: flex;
    background: white;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.12);
}

/* Panel izquierdo - Branding */
.login-brand {
    flex: 1;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    padding: 44px 36px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.brand-header {
    margin-bottom: 30px;
}

.brand-header .logo {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 20px;
}

.brand-header .logo i {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.brand-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.brand-header p {
    font-size: 0.8rem;
    opacity: 0.85;
}

.brand-features {
    list-style: none;
}

.brand-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    font-size: 0.8rem;
    opacity: 0.9;
}

.brand-features li i {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

/* Panel derecho - Formulario */
.login-form-panel {
    flex: 1;
    padding: 48px 44px;
    background: white;
}

.login-form-panel h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.login-form-panel > p {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 32px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #1a1a2e;
    font-weight: 600;
    font-size: 0.8rem;
}

.form-group label i {
    margin-right: 8px;
    color: #0f3460;
    width: 18px;
}

.form-group input {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    outline: none;
    font-family: 'Poppins', sans-serif;
    background: #f8fafc;
}

.form-group input:focus {
    border-color: #0f3460;
    background: white;
    box-shadow: 0 0 0 3px rgba(15, 52, 96, 0.08);
}

.btn-login {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-login:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #0f3460, #1a1a2e);
    box-shadow: 0 8px 20px rgba(26, 26, 46, 0.25);
}

.error-message {
    background: #fef2f2;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 14px;
    margin-bottom: 24px;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    border-left: 3px solid #dc2626;
}

.credentials-hint {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.credential {
    text-align: center;
    padding: 8px 18px;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.credential:hover {
    transform: translateY(-2px);
    border-color: #0f3460;
    background: white;
}

.credential .role {
    font-weight: 700;
    font-size: 0.65rem;
    color: #0f3460;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.credential .info {
    font-size: 0.65rem;
    color: #475569;
    font-family: monospace;
}

.login-footer {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.login-footer a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.7rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.login-footer a:hover {
    color: #0f3460;
}

/* Responsive */
@media (max-width: 992px) {
    .login-wrapper {
        flex-direction: column;
        max-width: 450px;
        margin: 0 auto;
    }

    .login-brand {
        padding: 32px 28px;
    }

    .login-form-panel {
        padding: 32px 28px;
    }

    .brand-features {
        display: none;
    }

    .brand-header h2 {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    body {
        padding: 16px;
    }

    .login-wrapper {
        border-radius: 24px;
    }

    .login-brand {
        padding: 26px 22px;
    }

    .login-form-panel {
        padding: 28px 22px;
    }

    .login-form-panel h3 {
        font-size: 1.3rem;
    }

    .credentials-hint {
        flex-direction: column;
        gap: 10px;
    }

    .credential {
        width: 100%;
    }

    .login-footer {
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .brand-header .logo {
        font-size: 2rem;
        padding: 10px;
    }

    .brand-header h2 {
        font-size: 1.1rem;
    }

    .login-form-panel h3 {
        font-size: 1.2rem;
    }

    .login-form-panel > p {
        font-size: 0.75rem;
    }

    .form-group input {
        padding: 10px 14px;
        font-size: 0.8rem;
    }

    .btn-login {
        padding: 10px;
        font-size: 0.8rem;
    }
}

.btn-login.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-login.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}