* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; }
body { color: #372419; font-family: "Be Vietnam Pro", system-ui, sans-serif; background: #f5ead5; overflow: hidden; }
button, input { font: inherit; }
a { color: inherit; }

.hr-login-page {
    width: 100%;
    height: 100vh;
    height: 100svh;
    display: grid;
    place-items: center;
    padding: clamp(14px, 2.5vh, 24px) clamp(18px, 3.5vw, 58px);
    background-color: #f7ecd8;
    background-image: radial-gradient(circle at 15% 15%, rgba(191,139,59,.15), transparent 28%), linear-gradient(135deg, #fbf3e5, #efe0c4);
    background-size: cover;
    background-position: center;
}

.hr-login-shell {
    width: min(1240px, calc(147svh - 41px), 100%);
    height: min(760px, calc(100svh - 28px));
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(430px, .92fr);
    overflow: hidden;
    background: rgba(255,255,255,.97);
    border: 1px solid rgba(130,88,29,.1);
    border-radius: 25px;
    box-shadow: 0 25px 75px rgba(78,52,20,.16);
}
.hr-login-shell > *, .hr-login-form-inner, #loginForm { min-width: 0; }

.hr-login-visual {
    position: relative;
    min-height: 0;
    display: flex;
    flex-direction: column;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(30px, 4vw, 56px);
    color: #fffaf0;
    background-color: #73502f;
    background-image: linear-gradient(145deg, rgba(38,22,11,.3), rgba(38,22,11,.9));
    background-position: center;
    background-size: cover;
}

.hr-login-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(28,16,8,.5), transparent 70%), linear-gradient(0deg, rgba(24,14,7,.78), transparent 58%);
}
.hr-login-visual.is-artwork::before { display: none; }
.hr-login-visual.is-artwork > * { display: none; }

.hr-login-brand {
    width: fit-content;
    min-height: 58px;
    display: inline-flex;
    align-items: center;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    text-shadow: 0 2px 14px rgba(0,0,0,.45);
}
.hr-login-brand img { width: auto; max-width: 150px; height: 72px; object-fit: contain; filter: drop-shadow(0 3px 8px rgba(0,0,0,.25)); }

.hr-visual-copy { width: min(480px, 92%); margin-top: auto; margin-bottom: clamp(80px, 13vh, 140px); }
.hr-visual-eyebrow, .hr-login-eyebrow { margin: 0 0 16px; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.hr-visual-copy h2 {
    max-width: 460px;
    margin: 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(42px, 4.2vw, 68px);
    line-height: 1.05;
    text-wrap: balance;
    text-shadow: 0 4px 24px rgba(0,0,0,.4);
}
.hr-visual-copy h2::after { content: ""; display: block; width: 78px; height: 3px; margin-top: 25px; border-radius: 3px; background: var(--login-accent); }
.hr-visual-description { max-width: 420px; margin: 22px 0 0; color: rgba(255,255,255,.86); font-family: "Playfair Display", Georgia, serif; font-size: 16px; line-height: 1.7; }
.hr-visual-footer { margin-top: auto; }
.hr-visual-quote { margin: 0 0 20px; color: #f3d39c; font-family: "Playfair Display", Georgia, serif; font-size: 17px; font-style: italic; text-align: center; }

.hr-login-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.24); }
.hr-login-feature { display: flex; align-items: center; gap: 10px; min-width: 0; color: rgba(255,255,255,.88); font-size: 10px; line-height: 1.45; }
.hr-login-feature svg { flex: 0 0 29px; width: 29px; height: 29px; fill: none; stroke: #e6bd75; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }

.hr-login-form-panel {
    display: grid;
    place-items: center;
    padding: clamp(24px, 4vh, 42px) clamp(36px, 4vw, 62px);
    background: radial-gradient(circle at 95% 5%, rgba(204,156,79,.08), transparent 24%), #fff;
}
.hr-login-form-inner { width: min(460px, 100%); }
.hr-login-heading { margin-bottom: 35px; text-align: center; }
.hr-login-eyebrow { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 17px; color: var(--login-accent); }
.hr-login-eyebrow span { width: 26px; height: 1px; background: var(--login-accent); }
.hr-login-heading h1 { margin: 0; color: #2f1d14; font-family: "Playfair Display", Georgia, serif; font-size: clamp(38px, 3.6vw, 54px); line-height: 1.08; }
.hr-login-heading h1, .hr-login-heading > p:last-child, .hr-login-feature span { overflow-wrap: anywhere; }
.hr-login-heading > p:last-child { max-width: 420px; margin: 14px auto 0; color: #7c7069; font-size: 13px; line-height: 1.7; }

.hr-guest-checkout { display: block; margin-bottom: 20px; padding: 13px 18px; border: 1px solid var(--login-accent); border-radius: 9px; color: #7d561a; font-size: 13px; font-weight: 600; text-align: center; text-decoration: none; }
.hr-field { margin-bottom: 21px; }
.hr-field label { display: block; margin-bottom: 9px; color: #4c403a; font-size: 12px; font-weight: 600; }
.hr-field-label-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.hr-field-label-row a { margin-bottom: 9px; color: #a57226; font-size: 11px; font-weight: 600; text-decoration: none; }
.hr-field-label-row a:hover { text-decoration: underline; }
.hr-input-wrap { position: relative; }
.hr-input-wrap > svg { position: absolute; top: 50%; left: 16px; width: 18px; height: 18px; fill: none; stroke: #746b66; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; transform: translateY(-50%); pointer-events: none; }
.hr-input-wrap input { width: 100%; height: 51px; padding: 0 48px 0 46px; border: 1px solid #dedbd7; border-radius: 8px; outline: none; color: #382820; background: #fff; font-size: 12px; transition: border-color .2s, box-shadow .2s; }
.hr-input-wrap input::placeholder { color: #aaa5a1; }
.hr-input-wrap input:focus { border-color: var(--login-accent); box-shadow: 0 0 0 3px rgba(199,147,55,.14); }

.hr-password-toggle { position: absolute; top: 50%; right: 13px; width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; transform: translateY(-50%); }
.hr-password-toggle svg { width: 18px; height: 18px; fill: none; stroke: #746b66; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.hr-password-toggle .eye-closed, .hr-password-toggle.is-visible .eye-open { display: none; }
.hr-password-toggle.is-visible .eye-closed { display: block; }
.hr-field-error { margin: 7px 0 0; color: #b3261e; font-size: 11px; line-height: 1.45; }
.hr-recaptcha { margin: 4px 0 20px; overflow: hidden; }

.hr-login-submit { width: 100%; height: 53px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 8px; color: #fff; background: linear-gradient(110deg, var(--login-accent), #ddb461); box-shadow: 0 12px 25px rgba(174,119,33,.22); font-family: "Playfair Display", Georgia, serif; font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.hr-login-submit:hover { transform: translateY(-1px); box-shadow: 0 15px 30px rgba(174,119,33,.3); }
.hr-login-submit:disabled { cursor: wait; opacity: .72; }
.hr-login-submit svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

.hr-social-divider { display: flex; align-items: center; gap: 14px; margin: 27px 0 20px; color: #8b817a; font-size: 11px; }
.hr-social-divider::before, .hr-social-divider::after { content: ""; flex: 1; height: 1px; background: #ddd8d2; }
.hr-social-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.hr-social-grid.is-single { grid-template-columns: 1fr; }
.hr-social-button { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 9px 12px; border: 1px solid #dedbd7; border-radius: 8px; color: #504640; background: #fff; font-size: 10px; font-weight: 500; text-decoration: none; transition: border-color .2s, background .2s; }
.hr-social-icon { flex: 0 0 22px; width: 22px; height: 22px; }
.hr-social-button:hover { border-color: #b9b2ab; background: #fcfaf7; }
.hr-register-line { margin: 26px 0 0; color: #80756e; font-size: 11px; text-align: center; }
.hr-register-line a { color: #a57226; font-weight: 700; text-decoration: none; }
.hr-register-line a:hover { text-decoration: underline; }
.hr-auth-alert { margin: 0 0 18px; padding: 12px 15px; border: 1px solid #b8ddc5; border-radius: 8px; color: #27643d; background: #edf8f1; font-size: 12px; line-height: 1.5; }
.hr-auth-alert.is-error { border-color: #e4b7b3; color: #9a2922; background: #fff1f0; }
.hr-register-form .hr-field { margin-bottom: 14px; }
.hr-register-form .hr-login-heading { margin-bottom: 20px; }
.hr-register-form .hr-login-heading > p:last-child { margin-top: 9px; }
.hr-register-form .hr-input-wrap input { height: 48px; }
.hr-register-form .hr-login-submit { height: 50px; }
.hr-register-form .hr-register-line { margin-top: 18px; }
.hr-forgot-form .hr-login-form-inner { width: min(440px, 100%); }
.hr-forgot-form .hr-login-heading { margin-bottom: 28px; }
.hr-new-password-form .hr-login-form-inner { width: min(440px, 100%); }
.hr-new-password-form .hr-login-heading { margin-bottom: 26px; }

@media (min-width: 981px) and (max-height: 900px) {
    .hr-login-shell { height: calc(100svh - 28px); }
    .hr-login-visual { padding: clamp(26px, 4vh, 40px); }
    .hr-login-brand { min-height: 48px; }
    .hr-login-brand img { height: 58px; max-width: 132px; }
    .hr-visual-copy { margin-bottom: clamp(38px, 7vh, 65px); }
    .hr-visual-copy h2 { font-size: clamp(40px, 3.5vw, 56px); }
    .hr-visual-copy h2::after { margin-top: 18px; }
    .hr-visual-description { margin-top: 16px; line-height: 1.5; }
    .hr-visual-quote { margin-bottom: 13px; font-size: 15px; }
    .hr-login-features { padding-top: 13px; }
    .hr-login-form-panel { padding-top: 22px; padding-bottom: 22px; }
    .hr-login-heading { margin-bottom: 22px; }
    .hr-login-eyebrow { margin-bottom: 10px; }
    .hr-login-heading h1 { font-size: clamp(36px, 3.1vw, 46px); }
    .hr-login-heading > p:last-child { margin-top: 9px; line-height: 1.55; }
    .hr-guest-checkout { margin-bottom: 13px; padding: 10px 16px; }
    .hr-field { margin-bottom: 14px; }
    .hr-field label, .hr-field-label-row a { margin-bottom: 7px; }
    .hr-input-wrap input { height: 47px; }
    .hr-recaptcha { margin-bottom: 12px; }
    .hr-login-submit { height: 49px; }
    .hr-social-divider { margin: 18px 0 13px; }
    .hr-social-button { min-height: 43px; padding-top: 7px; padding-bottom: 7px; }
    .hr-register-line { margin-top: 17px; }
}

@media (max-width: 980px) {
    html, body { height: auto; min-height: 100%; }
    body { overflow-x: hidden; overflow-y: auto; }
    .hr-login-page { padding: 20px; }
    .hr-login-page { height: auto; min-height: 100svh; }
    .hr-login-shell { width: min(620px, 100%); height: auto; min-height: 0; grid-template-columns: 1fr; }
    .hr-login-visual { display: none; }
    .hr-login-form-panel { min-height: calc(100svh - 40px); padding: 50px 36px; }
}

@media (max-width: 560px) {
    .hr-login-page { display: block; padding: 0; }
    .hr-login-shell { min-height: 100vh; border: 0; border-radius: 0; box-shadow: none; }
    .hr-login-form-panel { min-height: 100svh; padding: 36px 22px; }
    .hr-login-heading h1 { font-size: 35px; }
    .hr-field-label-row { gap: 10px; }
    .hr-field-label-row a { text-align: right; }
    .hr-social-grid { grid-template-columns: 1fr; }
}

[dir="rtl"] .hr-input-wrap > svg { right: 16px; left: auto; }
[dir="rtl"] .hr-input-wrap input { padding-right: 46px; padding-left: 48px; }
[dir="rtl"] .hr-password-toggle { right: auto; left: 13px; }
