* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #1e4a7f;
    --secondary-cyan: #51EDE3;
    --dark-blue: #0f2847;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --shadow: rgba(30, 74, 127, 0.08);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--gray-50);
    padding: 20px;
    position: relative;
}

/* Side accent bar */
.accent-bar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(180deg, var(--primary-blue), var(--secondary-cyan));
}

.login-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 1100px;
    width: 100%;
    gap: 0;
}

@media (min-width: 768px) {
    .login-wrapper {
        grid-template-columns: 1fr 1fr;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
        border-radius: 24px;
        overflow: hidden;
    }
}

.brand-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #2a5c99 100%);
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.brand-section::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--secondary-cyan);
    border-radius: 50%;
    opacity: 0.1;
    top: -150px;
    right: -150px;
}

.brand-section::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: var(--secondary-cyan);
    border-radius: 50%;
    opacity: 0.1;
    bottom: -100px;
    left: -100px;
}

.brand-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.brand-logo {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin-bottom: 28px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.brand-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.brand-subtitle {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 320px;
    margin: 0 auto;
}

.login-section {
    background: white;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-header {
    margin-bottom: 36px;
}

.login-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 8px;
}

.login-header p {
    color: var(--gray-700);
    font-size: 15px;
}

.form-group {
    margin-bottom: 22px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--gray-800);
    font-size: 14px;
    font-weight: 600;
}

.input-group {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-700);
    font-size: 18px;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 14px 16px 14px 46px;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    font-size: 15px;
    background: white;
    color: var(--gray-800);
    transition: all 0.2s ease;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 74, 127, 0.08);
}

.captcha-section {
    margin: 28px 0;
}

.captcha-wrapper {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.captcha-display {
    flex: 1;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-cyan));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: white;
    letter-spacing: 6px;
}

.captcha-btn {
    width: 60px;
    height: 60px;
    background: var(--gray-100);
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.2s ease;
}

.captcha-btn:hover {
    background: var(--secondary-cyan);
    border-color: var(--secondary-cyan);
    transform: rotate(90deg);
}

.captcha-input input {
    padding-left: 16px;
}

.btn-login {
    width: 100%;
    padding: 16px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
    position: relative;
    overflow: hidden;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(81, 237, 227, 0.4), transparent);
    transition: left 0.5s ease;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:hover {
    background: #2a5c99;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 74, 127, 0.3);
}

.btn-login:active {
    transform: translateY(0);
}

.forgot-password {
    text-align: center;
    margin-top: 24px;
}

.forgot-password a {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s ease;
}
.factura-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
}

.factura-border {
    border-bottom: 1px solid #e5e5e5;
}

.factura-label {
    color: #737373;
    font-weight: 500;
}

.factura-value {
    color: #171717;
    font-weight: 600;
}

.factura-monto {
    color: #1e4a7f;
    font-size: 20px;
    font-weight: 700;
}

.forgot-password a:hover {
    color: var(--secondary-cyan);
}

@media (max-width: 767px) {
    .brand-section {
        padding: 40px 30px;
        border-radius: 24px 24px 0 0;
    }

    .login-section {
        padding: 40px 30px;
        border-radius: 0 0 24px 24px;
    }

    .login-wrapper {
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
        border-radius: 24px;
        overflow: hidden;
    }

    .brand-logo {
        width: 80px;
        height: 80px;
        font-size: 40px;
    }

    .brand-title {
        font-size: 28px;
    }
}