.login-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 14% 14%, rgba(255, 207, 5, 0.22), transparent 26rem),
        radial-gradient(circle at 92% 82%, rgba(247, 144, 29, 0.16), transparent 28rem),
        #fff8ef;
}

.login-shell {
    display: grid;
    width: min(1080px, calc(100% - 40px));
    min-height: 620px;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    margin: max(42px, 7vh) auto;
    overflow: hidden;
    border: 1px solid rgba(240, 218, 201, 0.94);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 30px 90px rgba(69, 12, 8, 0.12);
}

.login-intro {
    position: relative;
    display: flex;
    min-height: 620px;
    flex-direction: column;
    overflow: hidden;
    padding: 48px 54px;
    color: #fffaf4;
    background:
        radial-gradient(circle at 10% 5%, rgba(255, 207, 5, 0.18), transparent 20rem),
        linear-gradient(145deg, rgba(83, 18, 11, 0.98), rgba(49, 7, 4, 0.99));
}

.login-intro::after {
    position: absolute;
    right: -90px;
    bottom: -120px;
    width: 390px;
    height: 390px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    box-shadow: 0 0 0 44px rgba(255, 255, 255, 0.025), 0 0 0 88px rgba(255, 255, 255, 0.018);
    content: "";
}

.login-brand {
    position: relative;
    z-index: 2;
    width: 260px;
    padding: 13px 15px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 34px rgba(38, 5, 3, 0.24);
}

.login-brand-logo {
    display: block;
    width: 100%;
    height: auto;
}

.login-intro-copy {
    position: relative;
    z-index: 2;
    max-width: 460px;
    margin-top: 94px;
}

.login-eyebrow {
    margin: 0 0 16px;
    color: #ffd45b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 3px;
}

.login-intro h1 {
    margin: 0;
    color: #fff;
    font-family: Georgia, "Songti SC", "Times New Roman", serif;
    font-size: clamp(38px, 4vw, 55px);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -1.8px;
}

.login-intro-copy > p:last-child {
    max-width: 390px;
    margin: 24px 0 0;
    color: rgba(255, 246, 235, 0.72);
    font-size: 12px;
    line-height: 1.9;
}

.login-board {
    position: absolute;
    right: 42px;
    bottom: 38px;
    display: grid;
    width: 126px;
    height: 126px;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(5, 1fr);
    opacity: 0.62;
}

.login-board::before,
.login-board::after {
    position: absolute;
    background: repeating-linear-gradient(to right, rgba(255, 224, 153, 0.25) 0 1px, transparent 1px 25%);
    content: "";
}

.login-board::before { inset: 0; }
.login-board::after {
    inset: 0;
    background: repeating-linear-gradient(to bottom, rgba(255, 224, 153, 0.25) 0 1px, transparent 1px 25%);
}

.login-board span { min-width: 0; }

.login-board .stone {
    position: absolute;
    z-index: 2;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.login-board .stone.black { top: 23px; left: 23px; background: #1f0806; }
.login-board .stone.white { top: 54px; left: 85px; background: #fff9ef; }
.login-board .stone.green { top: 85px; left: 54px; background: #f7901d; }

.login-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 62px 68px;
    background: rgba(255, 255, 255, 0.94);
}

.login-card-heading {
    display: flex;
    align-items: center;
    gap: 15px;
}

.login-lock {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 14px;
    color: var(--green);
    background: var(--green-soft);
}

.login-lock svg {
    width: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.login-card-heading p {
    margin: 0 0 3px;
    color: #9a827b;
    font-size: 10px;
    font-weight: 700;
}

.login-card-heading h2 {
    margin: 0;
    font-family: Georgia, "Songti SC", "Times New Roman", serif;
    font-size: 29px;
    font-weight: 600;
    letter-spacing: -0.7px;
}

.login-form {
    display: grid;
    gap: 19px;
    margin-top: 38px;
}

.login-form label {
    display: grid;
    gap: 8px;
    color: #674b45;
    font-size: 11px;
    font-weight: 750;
}

.login-form input:not([type="hidden"]) {
    width: 100%;
    height: 50px;
    padding: 0 15px;
    border: 1px solid #ead8cc;
    border-radius: 12px;
    outline: none;
    color: #3f211d;
    background: #fffaf4;
    font: inherit;
    font-size: 13px;
    transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.login-form input:not([type="hidden"]):focus {
    border-color: var(--brand-orange);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(247, 144, 29, 0.14);
}

.login-form input::placeholder { color: #b7a09a; }

.login-form button {
    display: flex;
    height: 50px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 5px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: var(--green);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 750;
    box-shadow: 0 12px 25px rgba(69, 12, 8, 0.18);
    transition: transform 150ms ease, background 150ms ease;
}

.login-form button:hover {
    background: var(--green-dark);
    transform: translateY(-1px);
}

.login-form button svg {
    width: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.login-error {
    padding: 11px 13px;
    border: 1px solid #edd4ce;
    border-radius: 10px;
    color: #a14f42;
    background: #fff7f5;
    font-size: 11px;
    line-height: 1.55;
}

.login-error p { margin: 0; }
.field-error { color: #a14f42; font-weight: 500; }

.login-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 28px 0 0;
    color: #aa928b;
    font-size: 9px;
}

.login-security svg {
    width: 14px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.login-public-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 18px;
    color: #7b4b35;
    font-size: 10px;
    font-weight: 750;
    text-decoration: none;
}

.login-public-link:hover { color: var(--green); }

.login-public-link svg {
    width: 15px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    transition: transform 150ms ease;
}

.login-public-link:hover svg { transform: translateX(2px); }

@media (max-width: 820px) {
    .login-shell {
        width: min(500px, calc(100% - 28px));
        min-height: 0;
        grid-template-columns: 1fr;
        margin: 24px auto;
    }

    .login-intro {
        min-height: 250px;
        padding: 30px 34px;
    }

    .login-brand {
        width: 205px;
        padding: 9px 12px;
        border-radius: 14px;
    }

    .login-intro-copy { margin-top: 32px; }
    .login-intro h1 { font-size: 34px; }
    .login-intro-copy > p:last-child,
    .login-board { display: none; }
    .login-card { padding: 42px 34px; }
}

@media (max-width: 420px) {
    .login-card { padding: 36px 24px; }
    .login-intro { padding: 27px 25px; }
}
