:root {
    --auth-ink: #233d35;
    --auth-muted: #69736d;
    --auth-line: #dce2da;
    --auth-paper: #fcfcf8;
    --auth-accent: #446756
}

* {
    box-sizing: border-box
}

.auth-body {
    margin: 0;
    background: var(--auth-paper);
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--auth-ink);
    font-size: 15px;
    line-height: 1.55
}

a {
    color: var(--auth-accent);
    text-underline-offset: 4px
}

a:hover {
    color: #253f31
}

button, a, input, select, summary {
    touch-action: manipulation
}

:focus-visible {
    outline: 3px solid #9aaa73;
    outline-offset: 4px
}

.auth-layout {
    display: grid;
    grid-template-columns: 46% 54%;
    min-height: 100vh
}

.auth-story {
    position: sticky;
    top: 0;
    height: 100vh;
    min-height: 640px;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 42px 50px;
    color: white;
    background: #334c40;
    overflow: hidden
}

.auth-story:before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: url('../fotos_productos/a1ff95e2cb2144e1ca9e789ba5ea3994.jpg') 40% center/cover no-repeat
}

.auth-story:after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(18, 40, 29, .2) 0%, rgba(18, 40, 29, .18) 24%, rgba(18, 40, 29, .78) 65%, rgba(18, 40, 29, .94) 100%)
}

.story-logo {
    align-self: flex-start;
    display: block
}

.story-logo img {
    width: 172px;
    height: auto;
    filter: brightness(0) invert(1)
}

.story-copy {
    margin-top: auto;
    padding-top: 110px;
    padding-bottom: 48px;
    max-width: 460px
}

.eyebrow {
    font-size: 17px;
    font-weight: 650;
    letter-spacing: 2.4px;
    display: block
}

.story-copy h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    font-size: clamp(44px, 4.8vw, 76px);
    letter-spacing: -2px;
    line-height: 1.04;
    margin: 22px 0
}

.story-copy p {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.6;
    color: #e2e8df
}

.story-line {
    display: block;
    width: 52px;
    height: 1px;
    background: #b5c7ad;
    margin: 26px 0
}

.story-caption {
    font-size: 13px;
    color: #dce4d7
}

.story-bottom {
    font-size: 9px;
    letter-spacing: 1.4px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: #e3e9df
}

.story-bottom span {
    letter-spacing: 0
}

.auth-content {
    padding: 34px 48px 20px;
    display: flex;
    flex-direction: column;
    min-width: 0
}

.auth-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 12px
}

.auth-top a {
    text-decoration: none
}

.auth-top a span {
    margin-right: 8px
}

.auth-top>span {
    font-size: 9px;
    letter-spacing: 1.4px;
    color: var(--auth-muted)
}

.auth-card {
    width: 100%;
    max-width: 430px;
    margin: auto;
    padding: 60px 0
}

.auth-heading .eyebrow {
    color: #78856d;
    margin-bottom: 18px
}

.auth-heading h1 {
    font-size: clamp(28px, 2.65vw, 42px);
    font-weight: 500;
    letter-spacing: -1.6px;
    line-height: 1.16;
    margin: 0 0 15px
}

.auth-heading>p {
    font-size: 14px;
    line-height: 1.65;
    color: var(--auth-muted);
    margin: 0 0 34px;
    max-width: 390px
}

.auth-field {
    margin-bottom: 18px
}

.auth-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 7px
}

.auth-field label>span {
    color: #7e8a7d
}

.auth-form .form-control, .auth-form .form-select {
    border: 1px solid var(--auth-line);
    border-radius: 7px;
    background-color: #fff;
    color: #233d35;
    min-height: 48px;
    padding: 11px 13px;
    font-size: 14px;
    box-shadow: none
}

.auth-form .form-control:focus, .auth-form .form-select:focus {
    border-color: #64866e;
    box-shadow: 0 0 0 3px rgba(80, 113, 85, .1)
}

.password-field {
    position: relative
}

.password-field input {
    padding-right: 66px !important
}

.password-toggle {
    position: absolute;
    right: 6px;
    top: 5px;
    height: 38px;
    border: 0;
    background: transparent;
    color: #48634f;
    font-size: 12px;
    padding: 0 12px;
    border-radius: 5px
}

.password-toggle:hover {
    background: #eff2ea
}

.forgot-link {
    text-align: right;
    font-size: 12px;
    margin: -3px 0 24px
}

.forgot-link a {
    text-decoration: none
}

.auth-submit {
    background: var(--auth-ink);
    color: white;
    border: 1px solid var(--auth-ink);
    min-height: 49px;
    border-radius: 7px;
    width: 100%;
    font-size: 13px;
    font-weight: 550;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 18px;
    text-decoration: none;
    transition: background .15s
}

.auth-submit:hover, .auth-submit:focus {
    background: #365743;
    color: white;
    border-color: #365743
}

.auth-submit:disabled {
    background: #64766b;
    color: #fff
}

.auth-switch {
    text-align: center;
    font-size: 12px;
    margin: 24px 0 0;
    color: var(--auth-muted)
}

.auth-switch a {
    font-weight: 600;
    margin-left: 3px
}

.auth-help {
    border-top: 1px solid var(--auth-line);
    margin-top: 36px;
    padding-top: 24px;
    font-size: 11px;
    text-align: center;
    line-height: 1.8
}

.auth-help>span {
    color: var(--auth-muted)
}

.auth-help a {
    text-decoration: none;
    margin-left: 5px
}

.auth-copyright {
    text-align: center;
    color: #8a9389;
    font-size: 10px
}

.auth-notice {
    border-radius: 7px;
    padding: 14px 16px;
    font-size: 13px;
    line-height: 1.6;
    margin: 0 0 25px;
    border: 1px solid
}

.notice-error {
    background: #fff3ed;
    border-color: #e8c9b6;
    color: #863d25
}

.notice-success {
    background: #edf4e9;
    border-color: #cddfc5;
    color: #39582f
}

.auth-register .auth-card {
    max-width: 620px;
    padding: 40px 0
}

.auth-register .auth-heading>p {
    max-width: 490px;
    margin-bottom: 20px
}

.required-hint {
    font-size: 11px;
    color: var(--auth-muted);
    margin-bottom: 22px
}

.auth-form fieldset {
    padding: 0;
    border: 0;
    margin: 0 0 28px
}

.auth-form legend {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 18px;
    float: none;
    width: auto
}

.auth-form legend>span {
    font-size: 10px;
    color: #8b9781;
    margin-right: 12px;
    letter-spacing: 1px
}

.auth-register .auth-field {
    margin-bottom: 0
}

.auth-register .form-control, .auth-register .form-select {
    min-height: 44px;
    padding: 9px 11px
}

.auth-register .password-toggle {
    top: 3px
}

.auth-form small, .field-help {
    font-size: 11px;
    color: var(--auth-muted);
    display: block;
    line-height: 1.5;
    margin-top: 8px
}

.field-help {
    margin-bottom: 0
}

.password-match {
    font-size: 12px;
    color: #9b422b;
    min-height: 0;
    margin-top: 5px
}

.password-match:empty {
    display: none
}

.optional-details {
    border-top: 1px solid var(--auth-line);
    border-bottom: 1px solid var(--auth-line);
    padding: 16px 0;
    margin-bottom: 20px
}

.optional-details summary {
    cursor: pointer;
    font-size: 12px;
    font-weight: 600
}

.optional-details summary span {
    font-size: 10px;
    font-weight: 400;
    color: var(--auth-muted);
    margin-left: 9px
}

.optional-details[open] summary {
    margin-bottom: 20px
}

.approval-note {
    font-size: 11px;
    color: var(--auth-muted);
    line-height: 1.6;
    margin: 0 0 20px
}

.auth-honeypot {
    display: none
}

.skip-link {
    position: fixed;
    top: -100px;
    left: 16px;
    background: #fff;
    z-index: 100;
    padding: 12px
}

.skip-link:focus {
    top: 16px
}

/* Texto de los campos y botones */
.auth-field label,
.auth-form .form-control,
.auth-form .form-select,
.auth-submit,
.auth-heading > p {
    font-size: 16px;
}

/* Enlaces y textos de ayuda */
.forgot-link,
.auth-switch,
.auth-help,
.auth-form small,
.field-help,
.required-hint,
.approval-note,
.password-toggle,
.auth-notice,
.optional-details summary {
    font-size: 14px;
}

/* Títulos de las secciones del registro */
.auth-form legend {
    font-size: 18px;
}

@media(min-width:1600px) {
    .auth-content {
        padding-left: 80px;
        padding-right: 80px
    }

    .auth-story {
        padding: 52px 64px
    }

    .auth-card {
        max-width: 460px
    }
}

@media(max-width:1100px) {
    .auth-content {
        padding: 28px 30px 20px
    }

    .auth-story {
        padding: 32px
    }

    .story-bottom {
        display: block
    }

    .story-bottom span {
        display: block;
        margin-top: 6px
    }

    .auth-top>span {
        display: none
    }
}

@media(max-width:767px) {
    .auth-layout {
        display: block
    }

    .auth-story {
        position: relative;
        height: 225px;
        min-height: 0;
        padding: 24px
    }

    .auth-story:before {
        background-position: 40% 43%
    }

    .auth-story:after {
        background: linear-gradient(90deg, rgba(18, 40, 29, .8), rgba(18, 40, 29, .12))
    }

    .story-logo img {
        width: 105px
    }

    .story-copy {
        padding: 0;
        margin-top: 18px
    }

    .story-copy h2 {
        font-size: 31px;
        line-height: 1;
        letter-spacing: -.8px;
        margin: 0
    }

    .story-copy h2 br {
        display: none
    }

    .story-copy h2 br:after {
        content: ' '
    }

    .story-copy .eyebrow, .story-copy p, .story-line, .story-caption, .story-bottom {
        display: none
    }

    .auth-content {
        padding: 22px 24px
    }

    .auth-top {
        font-size: 11px
    }

    .auth-card, .auth-register .auth-card {
        padding: 34px 0;
        max-width: 540px
    }

    .auth-heading h1 {
        font-size: 32px;
        letter-spacing: -1px
    }

    .auth-heading>p {
        font-size: 13px;
        margin-bottom: 26px
    }

    .auth-help {
        margin-top: 28px;
        padding-top: 20px
    }

    .auth-register .auth-story {
        height: 190px
    }

    .auth-register .auth-heading h1 {
        font-size: 32px
    }
}

@media(prefers-reduced-motion:reduce) {
    * {
        transition: none !important;
        scroll-behavior: auto !important
    }
}