:root {
    --orange: #F26B2B;
    --orange-soft: #F58552;
    --dark: #1E1E1E;
    --text: #2A2A2A;
    --muted: #6E6E6E;
    --field-bg: #F3F3F3;
    --field-text: #9A9A9A;
    --card-bg: #FFFFFF;
    --card-radius: 10px;
    --footer-link: #F26B2B;
}

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

html, body {
    height: 100%;
}

body {
    font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ---------- header ---------- */
.site-header {
    position: relative;
    background: #FFFFFF;
    padding: 16px 36px;
    height: 72px;
    display: flex;
    align-items: center;
    z-index: 20;
    flex-shrink: 0;
}

.logo-img {
    display: block;
    width: 110px;
    height: auto;
}

/* ---------- stage ---------- */
.stage {
    position: relative;
    flex: 1 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 2fr;
    align-items: center;
    padding: 60px 0;
    overflow: hidden;
}

.bg-image {
    position: absolute;
    inset: 0;
    background-image: url("fondo.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* ---------- chevrons ---------- */
.chevrons {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.chev {
    position: absolute;
    display: block;
}

.chev-1 { top: 10%;  left: 22%; width: 140px; transform: rotate(0deg); }
.chev-2 { top: 20%;  right: 32%; width: 110px; transform: rotate(0deg); }
.chev-3 { top: 32%;  left: 10%; width: 160px; transform: rotate(0deg); }
.chev-4 { bottom: 22%; left: 30%; width: 140px; transform: rotate(180deg); }
.chev-5 { bottom: 14%; right: 10%; width: 150px; transform: rotate(0deg); }
.chev-6 { top: 46%;  right: 2%; width: 110px; transform: rotate(90deg); }

/* ---------- cards ---------- */
.card {
    position: relative;
    z-index: 3;
    background: var(--card-bg);
    border-radius: var(--card-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 36px 36px;
}

.tips-card {
    grid-column: 2;
    width: 620px;
    max-width: 620px;
    min-height: 580px;
    padding: 40px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-card {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    max-width: 460px;
    min-height: 580px;
    padding: 40px 32px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ---------- tips card ---------- */
.shield-wrap {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 18px;
}

.shield-wrap img {
    width: 96px;
    height: 96px;
    display: block;
}

.shield {
    width: 96px;
    height: 96px;
}

.tips-title {
    text-align: left;
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 24px;
}

.tips-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tips-list li {
    position: relative;
    padding-left: 20px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--text);
}

.dot {
    position: absolute;
    left: 0;
    top: 9px;
    width: 7px;
    height: 7px;
    background: var(--orange);
    border-radius: 50%;
}

.tip-link {
    color: var(--orange);
    text-decoration: none;
    word-break: break-all;
}
.tip-link:hover { text-decoration: underline; }

/* ---------- login card ---------- */
.login-title {
    font-size: 26px;
    font-weight: 400;
    color: var(--text);
    line-height: 1.25;
    margin-bottom: 28px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* floating-label field */
.field {
    position: relative;
}

.field input {
    width: 100%;
    height: 58px;
    background: transparent;
    border: 1px solid #000000;
    border-radius: 6px;
    padding: 0 16px;
    font-size: 15px;
    color: var(--text);
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s;
}

.field input::placeholder {
    color: var(--field-text);
    opacity: 1;
}

.field input:focus {
    border-color: var(--orange);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* honeypot — visually hidden, kept in flow for bots */
.hp-field {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.has-icon input {
    padding-right: 44px;
}

.eye-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.eye-btn svg,
.eye-btn img {
    width: 22px;
    height: 22px;
    display: block;
    pointer-events: none;
}

/* checkbox */
.remember {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text);
    cursor: pointer;
    user-select: none;
    margin-top: 4px;
}

.remember input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.remember .box {
    width: 16px;
    height: 16px;
    border: 1.5px solid #BDBDBD;
    border-radius: 3px;
    display: inline-block;
    position: relative;
    flex-shrink: 0;
    background: #FFFFFF;
    transition: all 0.15s;
}

.remember input:checked + .box {
    background: var(--orange);
    border-color: var(--orange);
}

.remember input:checked + .box::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid #FFFFFF;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* primary button */
.btn-primary {
    margin-top: 14px;
    height: 56px;
    background: var(--dark);
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, transform 0.05s;
}
.btn-primary:hover { background: #000000; }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled,
.btn-primary.is-loading { opacity: 0.65; cursor: not-allowed; }

.link-sub {
    display: block;
    text-align: center;
    font-size: 14px;
    color: var(--text);
    text-decoration: none;
    margin-top: 10px;
    font-weight: 500;
}
.link-sub:hover { color: var(--orange); }

.link-danger {
    color: var(--orange);
    font-weight: 600;
}

/* ---------- footer ---------- */
.site-footer {
    position: relative;
    z-index: 10;
    padding: 30px 36px;
    min-height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #FFFFFF;
    font-size: 13px;
    flex-shrink: 0;
}

.copyright {
    color: var(--muted);
}

.footer-nav {
    display: flex;
    gap: 32px;
}

.footer-nav a {
    color: var(--footer-link);
    text-decoration: none;
    font-weight: 500;
}
.footer-nav a:hover { text-decoration: underline; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
    .stage {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 40px 20px;
        justify-items: center;
    }
    .bg-image { display: none; }
    .chevrons { display: none; }
    body { background: #EDEFF2; }
    .stage { background: #EDEFF2; }

    .tips-card {
        display: none;
    }
    .login-card {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        grid-column: 1;
        justify-self: center;
        width: 100%;
        max-width: 460px;
        min-height: 0;
        padding: 32px 28px;
    }
}

@media (max-width: 640px) {
    .site-header { padding: 14px 18px; height: 64px; }
    .site-footer {
        flex-direction: column;
        gap: 14px;
        text-align: center;
        padding: 22px 18px;
        min-height: 0;
    }
    .footer-nav {
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }
    .stage { padding: 24px 16px; }
    .tips-card, .login-card {
        max-width: 100%;
        padding: 26px 22px;
    }
    .login-title { font-size: 22px; }
    .tips-title { font-size: 20px; }
    .tips-list li { font-size: 14px; }
    .shield-wrap img, .shield { width: 72px; height: 72px; }
    .field input { height: 54px; font-size: 14px; }
    .btn-primary { height: 52px; font-size: 15px; }
}
