* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Arial, sans-serif;
    background: #eef3f7;
    color: #263746;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.login-card {
    width: 100%;
    max-width: 1080px;
    min-height: 650px;
    display: grid;
    grid-template-columns: 52% 48%;
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(22, 45, 65, 0.15);
}


/* =========================
   PANEL INSTITUCIONAL
========================= */

.login-info {
    position: relative;
    padding: 55px;
    background: #123b5d;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.login-info::after {
    content: "";
    position: absolute;
    width: 330px;
    height: 330px;
    border-radius: 50%;
    border: 70px solid rgba(255,255,255,.04);
    right: -130px;
    bottom: -130px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 2;
}

.brand-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #2e8b72;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 700;
}

.brand h1 {
    margin: 0;
    font-size: 25px;
    letter-spacing: 1px;
    font-weight: 800;
}

.brand h1 span {
    color: #69b89e;
}

.brand p {
    margin: 3px 0 0;
    font-size: 12px;
    color: #b8cbd8;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.info-content {
    max-width: 510px;
    position: relative;
    z-index: 2;
}

.tag {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 30px;
    background: rgba(255,255,255,.09);
    color: #9bd0bb;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

.info-content h2 {
    margin: 22px 0 15px;
    font-size: 38px;
    line-height: 1.18;
    font-weight: 300;
}

.info-content h2 strong {
    display: block;
    font-weight: 700;
    color: #8ac9b1;
}

.info-content > p {
    color: #c8d6df;
    line-height: 1.7;
    font-size: 15px;
}

.features {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 13px;
}

.feature-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #2e8b72;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.feature strong {
    display: block;
    font-size: 14px;
}

.feature small {
    display: block;
    margin-top: 3px;
    color: #aebfca;
    font-size: 12px;
}

.institutional-footer {
    position: relative;
    z-index: 2;
    color: #91a8b7;
    font-size: 11px;
}


/* =========================
   FORMULARIO
========================= */

.login-form {
    padding: 70px 65px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-header {
    margin-bottom: 35px;
}

.mobile-logo {
    display: none;
}

.form-header h2 {
    margin: 0;
    font-size: 32px;
    color: #173f5f;
    font-weight: 700;
}

.form-header p {
    margin: 8px 0 0;
    color: #71808c;
    font-size: 14px;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #34495e;
    font-size: 13px;
    font-weight: 600;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #78909c;
    z-index: 2;
}

.form-control {
    height: 52px;
    padding: 10px 45px;
    border: 1px solid #d6e0e7;
    border-radius: 9px;
    font-size: 14px;
    color: #263746;
    background: #fafcfd;
    transition: .2s;
}

.form-control:focus {
    border-color: #2e8b72;
    box-shadow: 0 0 0 3px rgba(46,139,114,.10);
    background: #ffffff;
}

.btn-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #71808c;
    cursor: pointer;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 4px 0 28px;
    font-size: 12px;
}

.remember {
    display: flex;
    gap: 7px;
    align-items: center;
    color: #667784;
}

.remember input {
    accent-color: #2e8b72;
}

.form-options a {
    color: #276b59;
    text-decoration: none;
    font-weight: 600;
}

.form-options a:hover {
    text-decoration: underline;
}

.btn-ingresar {
    width: 100%;
    height: 54px;
    border: 0;
    border-radius: 9px;
    background: #2e8b72;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s;
}

.btn-ingresar:hover {
    background: #26745f;
    transform: translateY(-1px);
}

.btn-ingresar strong {
    font-size: 22px;
    font-weight: 400;
}

.security-message {
    display: flex;
    align-items: center;
    gap: 9px;
    justify-content: center;
    margin-top: 25px;
    color: #8796a0;
}

.security-message p {
    margin: 0;
    font-size: 11px;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 850px) {

    .login-card {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .login-info {
        display: none;
    }

    .login-form {
        padding: 50px 40px;
    }

    .mobile-logo {
        display: block;
        margin-bottom: 30px;
        font-size: 22px;
        font-weight: 800;
        color: #173f5f;
    }

    .mobile-logo span {
        color: #173f5f;
    }
}

@media (max-width: 500px) {

    .login-container {
        padding: 15px;
    }

    .login-form {
        padding: 35px 25px;
    }

    .form-header h2 {
        font-size: 28px;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}