:root {
    --background: #07111f;
    --background-soft: #0b1728;
    --card: rgba(13, 27, 46, 0.94);
    --card-border: rgba(255, 255, 255, 0.08);
    --text: #f5f7fb;
    --text-muted: #93a4b8;
    --accent: #22c55e;
    --accent-hover: #16a34a;
    --input: rgba(255, 255, 255, 0.045);
    --input-border: rgba(255, 255, 255, 0.12);
    --danger: #ef4444;
    --shadow: 0 25px 80px rgba(0, 0, 0, 0.32);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(
            circle at 18% 20%,
            rgba(34, 197, 94, 0.10),
            transparent 30%
        ),
        radial-gradient(
            circle at 85% 80%,
            rgba(41, 98, 255, 0.09),
            transparent 30%
        ),
        var(--background);
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

.login-page {
    width: min(1440px, 100%);
    min-height: 100vh;
    margin: 0 auto;
    padding: 0 48px;
    display: flex;
    flex-direction: column;
}

.login-header {
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.marca {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: #ffffff;
    text-decoration: none;
}

.marca:hover {
    color: #ffffff;
    text-decoration: none;
}

.marca-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    flex: 0 0 46px;

    color: #67e8f9;
    background:
        radial-gradient(
            circle at 70% 25%,
            #facc15 0 3px,
            transparent 4px
        ),
        linear-gradient(
            145deg,
            rgba(20, 184, 166, 0.16),
            rgba(14, 165, 233, 0.08)
        );

    border: 1px solid rgba(34, 211, 238, 0.45);
    border-radius: 13px;

    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.marca-texto {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.marca-texto strong {
    display: block;
    color: #ffffff;
    font-size: 19px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.08em;
}

.marca-texto span {
    display: block;
    color: #9caec1;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.back-link {
    color: var(--text-muted);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--text);
}

.login-main {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 480px);
    align-items: center;
    gap: 96px;
    padding: 48px 0 72px;
}

.login-information {
    max-width: 660px;
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 24px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.login-information h1 {
    max-width: 650px;
    margin: 0;
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.03;
    letter-spacing: -0.045em;
}

.login-information > p {
    max-width: 590px;
    margin: 28px 0 0;
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1.75;
}

.feature-list {
    margin-top: 42px;
    display: grid;
    gap: 22px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.feature-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: grid;
    place-items: center;
    margin-top: 1px;
    color: var(--accent);
    background: rgba(34, 197, 94, 0.11);
    border: 1px solid rgba(34, 197, 94, 0.22);
    border-radius: 50%;
    font-size: 14px;
    font-weight: 800;
}

.feature-item strong {
    display: block;
    margin-bottom: 5px;
    font-size: 15px;
}

.feature-item small {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
}

.login-card-wrapper {
    width: 100%;
}

.login-card {
    padding: 38px;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 22px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.login-card-heading {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 34px;
}

.login-status {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    margin-top: 10px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 18px rgba(34, 197, 94, 0.75);
}

.login-card-heading h2 {
    margin: 0;
    font-size: 27px;
    letter-spacing: -0.025em;
}

.login-card-heading p {
    margin: 8px 0 0;
    color: var(--text-muted);
    font-size: 14px;
}

.login-form {
    display: grid;
    gap: 22px;
}

.form-group {
    display: grid;
    gap: 9px;
}

.form-group label {
    font-size: 13px;
    font-weight: 650;
}

.label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.forgot-link {
    color: var(--text-muted);
    font-size: 12px;
    text-decoration: none;
}

.forgot-link:hover {
    color: var(--accent);
}

.form-group input {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    color: var(--text);
    background: var(--input);
    border: 1px solid var(--input-border);
    border-radius: 11px;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.form-group input::placeholder {
    color: #64758b;
}

.form-group input:focus {
    background: rgba(255, 255, 255, 0.065);
    border-color: rgba(34, 197, 94, 0.65);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.09);
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 82px;
}

.input-with-icon{
    position:relative;
    width:100%;
}

.field-icon{
    position:absolute;
    left:16px;
    top:50%;
    transform:translateY(-50%);
    color:#7d8fa5;
    font-size:17px;
    line-height:1;
    z-index:10;
    pointer-events:none;
}

.input-with-icon input{
    width:100%;
    padding-left:48px;
    box-sizing:border-box;
}

.password-toggle {

    position:absolute;

    top:50%;

    right:14px;

    transform:translateY(-50%);

    width:34px;

    height:34px;

    display:flex;

    align-items:center;

    justify-content:center;

    background:transparent;

    border:0;

    color:#8fa2b8;

    cursor:pointer;

    transition:.20s;

}

.password-toggle:hover {
    color: var(--text);
}

.remember-option {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
}

.remember-option input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--accent);
}

.login-button {
    width: 100%;
    min-height: 54px;
    margin-top: 4px;
    color: #03110a;
    background: var(--accent);
    border: 0;
    border-radius: 11px;
    cursor: pointer;
    font-weight: 800;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.login-button:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.login-security {
    margin-top: 24px;
    padding-top: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: var(--text-muted);
    border-top: 1px solid var(--card-border);
    font-size: 12px;
}

.security-dot {
    width: 7px;
    height: 7px;
    background: var(--accent);
    border-radius: 50%;
}

.support-text {
    margin: 20px 0 0;
    color: var(--text-muted);
    text-align: center;
    font-size: 13px;
}

.support-text a {
    color: var(--text);
    text-decoration: none;
}

.support-text a:hover {
    color: var(--accent);
}

.alert {
    margin-bottom: 22px;
    padding: 13px 15px;
    border-radius: 10px;
    font-size: 13px;
}

.alert-error {
    color: #fecaca;
    background: rgba(239, 68, 68, 0.09);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.login-footer {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #68788d;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 12px;
}

@media (max-width: 980px) {
    .login-page {
        padding: 0 28px;
    }

    .login-main {
        grid-template-columns: 1fr;
        gap: 54px;
        padding-top: 34px;
    }

    .login-information {
        max-width: 720px;
        text-align: center;
        margin: 0 auto;
    }

    .login-information > p {
        margin-right: auto;
        margin-left: auto;
    }

    .feature-list {
        max-width: 520px;
        margin-right: auto;
        margin-left: auto;
        text-align: left;
    }

    .login-card-wrapper {
        max-width: 520px;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .login-page {
        padding: 0 18px;
    }

    .login-header {
        min-height: 82px;
    }    

    .login-main {
        padding: 30px 0 50px;
    }

    .login-information h1 {
        font-size: 38px;
    }

    .login-information > p {
        font-size: 16px;
    }

    .feature-list {
        margin-top: 32px;
    }

    .login-card {
        padding: 28px 22px;
        border-radius: 18px;
    }

    .label-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .login-footer {
        flex-direction: column;
        justify-content: center;
        gap: 7px;
        text-align: center;
    }
}

.system-status {
    display: block;
    margin-bottom: 7px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ==================================================
   CAMPOS CON ICONOS
   ================================================== */

.input-field-wrapper {
    position: relative !important;
    display: block !important;
    width: 100% !important;
}

.input-field-wrapper .input-field-icon {
    position: absolute !important;
    top: 50% !important;
    left: 17px !important;
    z-index: 5 !important;

    display: block !important;
    margin: 0 !important;

    color: #9fb2c7 !important;
    font-size: 17px !important;
    line-height: 1 !important;

    transform: translateY(-50%) !important;
    pointer-events: none !important;
}

.form-group .input-field-wrapper input {
    width: 100% !important;
    padding-right: 16px !important;
    padding-left: 48px !important;
}

.form-group .input-field-wrapper.password-field input {
    padding-right: 58px !important;
}

.input-field-wrapper .password-toggle {
    position: absolute !important;
    top: 50% !important;
    right: 12px !important;
    z-index: 6 !important;

    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    color: #8394a9 !important;
    background: transparent !important;
    border: 0 !important;

    transform: translateY(-50%) !important;
    cursor: pointer !important;
}

.input-field-wrapper .password-toggle i {
    font-size: 17px;
    line-height: 1;
}

.input-field-wrapper .password-toggle:hover {
    color: #ffffff !important;
}

.login-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}