:root {
    color-scheme: light;
    font-family: "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    color: #26352e;
    background: #f7f8f5;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 36px;
}

.login-card {
    width: min(1120px, 100%);
    min-height: 640px;
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    overflow: hidden;
    border: 1px solid #e2e7df;
    border-radius: 30px;
    background: #fff;
    box-shadow: 0 20px 55px rgba(27, 43, 31, .11), 0 3px 10px rgba(27, 43, 31, .06);
}

.login-story {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    padding: 38px 44px 28px;
    background: linear-gradient(145deg, #e4ece2 0%, #eef3eb 70%, #e3ebe2 100%);
}

.login-brand { display: flex; align-items: center; gap: 14px; }
.login-brand-logo {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 16px;
    background: #27312a;
    box-shadow: 0 5px 18px rgba(34, 48, 37, .14);
}
.login-brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.login-brand-name {
    max-width: 300px;
    color: #24372e;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.login-story-copy { position: relative; z-index: 1; margin-top: 54px; }
.login-eyebrow {
    margin: 0;
    color: #698174;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .22em;
}
.login-story-copy > p:last-child {
    max-width: 420px;
    margin: 0;
    color: #62766a;
    font-size: 15px;
    line-height: 1.7;
}
.login-story-image {
    position: relative;
    z-index: 1;
    flex: 1;
    min-height: 270px;
    max-height: 340px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin: 8px -20px 8px;
}
.login-story-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 15px 17px rgba(38, 54, 39, .15));
}
.login-story-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: auto 0 0;
    color: #6e8176;
    font-size: 11px;
    letter-spacing: .045em;
}
.login-story-footer span { width: 30px; height: 1px; background: #a8b9ab; }

.login-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    padding: 38px 62px 26px;
}
.login-content-inner { width: 100%; max-width: 390px; margin: auto; }
.login-access {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 60px;
    color: #678172;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .19em;
}
.login-access span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #9cbaa0;
    box-shadow: 0 0 0 4px #eaf1e8;
}
.login-intro .login-eyebrow { margin-bottom: 12px; }
.login-intro h2 {
    margin: 0 0 10px;
    color: #1e342b;
    font-size: clamp(27px, 2.3vw, 34px);
    font-weight: 650;
    letter-spacing: -.05em;
    line-height: 1.15;
}
.login-intro > p:last-child {
    margin: 0 0 28px;
    color: #798980;
    font-size: 14px;
    line-height: 1.55;
}
.login-form { display: grid; gap: 18px; }
.login-field label {
    display: block;
    margin-bottom: 8px;
    color: #34493c;
    font-size: 13px;
    font-weight: 700;
}
.login-field input {
    display: block;
    width: 100%;
    height: 50px;
    padding: 0 15px;
    border: 1px solid #d9e4d8;
    border-radius: 11px;
    outline: 0;
    background: #f6f9f5;
    color: #26382d;
    font: inherit;
    font-size: 14px;
    transition: border-color .2s, box-shadow .2s;
}
.login-field input:focus {
    border-color: var(--login-accent);
    box-shadow: 0 0 0 4px rgba(117, 138, 118, .15);
}
.login-password-field { position: relative; }
.login-password-field input { padding-right: 54px; }
.login-password-toggle {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #738578;
    cursor: pointer;
}
.login-password-toggle svg { width: 20px; height: 20px; }
.login-password-toggle:hover { background: #e8efe7; }
.login-password-toggle:focus-visible, .login-submit:focus-visible {
    outline: 3px solid #b2ceb1;
    outline-offset: 2px;
}
.login-submit {
    width: 100%;
    height: 51px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 8px;
    border: 0;
    border-radius: 11px;
    background: var(--login-accent);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: filter .2s, transform .2s;
}
.login-submit:hover { filter: brightness(.9); transform: translateY(-1px); }
.login-submit span { font-size: 20px; font-weight: 400; line-height: 1; }
.login-error {
    margin: 0 0 20px;
    padding: 12px 14px;
    border: 1px solid #f0c7c4;
    border-radius: 10px;
    background: #fff2f0;
    color: #a5342a;
    font-size: 13px;
    line-height: 1.45;
}
.login-help { margin: 28px 0 0; color: #92a097; font-size: 12px; text-align: center; }
.login-copyright { margin: 32px 0 0; color: #a4b1a5; font-size: 11px; text-align: center; }

@media (max-width: 850px) {
    .login-page { padding: 20px; }
    .login-card { grid-template-columns: 1fr; max-width: 560px; }
    .login-story { padding: 25px 30px; }
    .login-story-copy { margin-top: 30px; }
    .login-story-image { min-height: 170px; max-height: 200px; margin: 8px 0 0; }
    .login-story-footer { display: none; }
    .login-content { padding: 30px; }
    .login-access { margin-bottom: 38px; }
    .login-content-inner { max-width: none; }
    .login-copyright { margin-top: 46px; }
}
@media (max-width: 480px) {
    .login-page { display: block; min-height: 100vh; padding: 0; }
    .login-card { min-height: 100vh; border: 0; border-radius: 0; box-shadow: none; }
    .login-story { padding: 23px 22px 27px; }
    .login-brand-logo { width: 45px; height: 45px; border-radius: 13px; }
    .login-brand-name { font-size: 12px; }
    .login-story-copy { margin-top: 24px; }
    .login-story-copy > p:last-child { font-size: 13px; line-height: 1.5; }
    .login-story-image { display: none; }
    .login-content { padding: 27px 22px 22px; }
    .login-access { margin-bottom: 30px; }
    .login-intro h2 { font-size: 27px; }
    .login-copyright { margin-top: 36px; }
}
