:root {
    --primary-blue: #0A2E5C;
    --primary-green: #59A735;
    --text-dark: #1A1A1A;
    --text-gray: #6B7280;
    --bg-light: #F8FAFC;
    --white: #FFFFFF;
    --border-color: #E2E8F0;
    --light-blue: #F0F6FA;
}

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

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    height: 100vh;
    overflow: hidden;
}

.split-layout {
    display: flex;
    height: 100vh;
    width: 100vw;
    background-color: var(--white);
}

/* --- Panel Izquierdo --- */
.left-pane {
    flex: 0 0 50%;
    position: relative;
    background: url('../img/chica.png') center top/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Create the white curved separation */
}

/* Curvas Decorativas */
.curve-blue {
    position: absolute;
    top: -10%;
    bottom: -10%;
    right: -15%;
    width: 100%;
    background: transparent;
    border-right: 80px solid var(--primary-blue);
    border-radius: 50%;
    z-index: 5;
    pointer-events: none;
}

.curve-green {
    position: absolute;
    top: -10%;
    bottom: -10%;
    right: -10%;
    width: 100%;
    background: transparent;
    border-right: 15px solid var(--primary-green);
    border-radius: 50%;
    z-index: 4;
    pointer-events: none;
}

.curve-white {
    position: absolute;
    top: -10%;
    bottom: -10%;
    right: -8%;
    width: 100%;
    background: transparent;
    border-right: 40px solid var(--white);
    border-radius: 50%;
    z-index: 3;
    pointer-events: none;
}


.left-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 3.5rem;
}

/* Brand header */
.brand-header {
    display: inline-block;
    align-self: flex-start;
    padding-top: 1rem;
}

.logo-top {
    height: 55px;
    object-fit: contain;
    margin-bottom: 0.8rem;
}

.slogan {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-blue);
    line-height: 1.4;
}

.slogan span {
    color: var(--primary-green);
}

/* Features Card */
.features-card {
    background: var(--white);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 35px rgba(0,0,0,0.08);
    margin-bottom: 1rem;
    margin-right: 2rem; /* keep away from curve */
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.feature-line {
    width: 1px;
    height: 40px;
    background-color: var(--border-color);
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--primary-blue);
}

.feature-text {
    display: flex;
    flex-direction: column;
}

.feature-text strong {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
}

.feature-text span {
    font-size: 0.75rem;
    color: var(--text-gray);
    line-height: 1.2;
}

/* --- Panel Derecho --- */
.right-pane {
    flex: 1;
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
    z-index: 1;
}

.login-card {
    position: relative;
    z-index: 10;
    background: var(--white);
    border-radius: 28px;
    padding: 2.5rem 3rem;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
    border: 1px solid var(--border-color);
}

.form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.logo-form {
    height: 70px;
    object-fit: contain;
    margin-bottom: 1.5rem;
}

.form-header h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.form-header p {
    font-size: 1rem;
    color: var(--text-gray);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1.2rem;
    color: var(--text-gray);
    font-size: 1.1rem;
}

.input-wrapper input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
    outline: none;
}

.input-wrapper input::placeholder {
    color: #A0AEC0;
}

.input-wrapper input:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 4px rgba(89, 167, 53, 0.1);
}

.btn-toggle-pass {
    position: absolute;
    right: 1.2rem;
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.2rem;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.remember-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-gray);
    font-weight: 500;
}

.remember-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-green);
    cursor: pointer;
}

.forgot-link {
    color: #3B82F6;
    text-decoration: none;
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}

.btn-primary {
    width: 100%;
    padding: 1.1rem;
    background-color: var(--primary-green);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #488f28;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--text-gray);
    font-size: 0.9rem;
    font-weight: 600;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.divider span {
    padding: 0 1rem;
}

.btn-secondary {
    width: 100%;
    padding: 1.1rem;
    background-color: var(--light-blue);
    color: var(--primary-blue);
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    transition: background-color 0.3s ease;
}

.btn-secondary i {
    font-size: 1.2rem;
}

.btn-secondary:hover {
    background-color: #dbeaf5;
}

/* Footer Bar */
.footer-bar {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    background-color: var(--white);
}

.secure-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.9rem;
}

.copyright {
    color: var(--text-gray);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 1200px) {
    .features-card {
        flex-direction: column;
        align-items: flex-start;
        margin-right: 0;
    }
    .feature-line {
        width: 100%;
        height: 1px;
    }
}

@media (max-width: 992px) {
    .split-layout {
        flex-direction: column;
        overflow-y: auto;
    }
    body { overflow-y: auto; height: auto; }
    .left-pane {
        flex: none;
        height: auto;
        padding-bottom: 4rem;
    }
    .curve-blue, .curve-green, .curve-white {
        display: none;
    }
    .footer-bar {
        position: static;
        flex-direction: column;
        gap: 1rem;
        margin-top: 3rem;
        text-align: center;
        padding: 0 1rem;
    }
}
