* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: #1f2329;
    background: radial-gradient(circle at 20% 16%, rgba(255, 255, 255, .22), transparent 28%), linear-gradient(120deg, rgba(9, 32, 63, .78), rgba(28, 89, 126, .42)), url("../img/login-bg.svg");
    background-size: cover;
    background-position: center;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(280px, 520px) minmax(320px, 440px);
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 32px;
}

.brand-panel,
.auth-card {
    min-height: 520px;
    padding: 58px 48px;
}

.brand-panel {
    color: #fff;
    background: linear-gradient(145deg, rgba(7, 193, 96, .94), rgba(47, 75, 221, .9));
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-mark {
    width: 74px;
    height: 42px;
    border-left: 5px solid #fff;
    border-bottom: 5px solid #fff;
    transform: rotate(-45deg);
    margin: 0 0 32px 12px;
}

.brand-panel h1 {
    margin: 0;
    font-size: 32px;
    line-height: 1.2;
}

.brand-panel p {
    margin: 18px 0 0;
    font-weight: 700;
}

.auth-card {
    background: rgba(255, 255, 255, .94);
    border-radius: 8px;
    box-shadow: 0 22px 60px rgba(16, 24, 40, .18);
    backdrop-filter: blur(16px);
}

.auth-card h2 {
    text-align: center;
    color: #0f172a;
    font-weight: 500;
    margin: 20px 0 36px;
}

form {
    display: grid;
    gap: 18px;
}

label {
    display: grid;
    gap: 8px;
    color: #717784;
    font-size: 14px;
}

input {
    height: 42px;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    padding: 0 12px;
    outline: none;
    font: inherit;
    background: #fff;
}

input:focus {
    border-color: #07c160;
    box-shadow: 0 0 0 3px rgba(7, 193, 96, .12);
}

button {
    height: 44px;
    border: 0;
    border-radius: 6px;
    background: #07c160;
    color: #fff;
    font: inherit;
    cursor: pointer;
}

.auth-links {
    display: flex;
    justify-content: center;
    gap: 18px;
    align-items: center;
    margin: 16px 0;
}

.auth-links form {
    display: block;
}

.link,
.auth-links a {
    color: #07a955;
    text-decoration: none;
}

.link-button {
    height: auto;
    padding: 0;
    color: #07a955;
    background: transparent;
}

.guest-form {
    margin-top: 18px;
}

.captcha-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 10px;
    align-items: center;
}

.captcha-row img {
    width: 150px;
    height: 52px;
    border-radius: 8px;
    border: 1px solid #e1e5ec;
    cursor: pointer;
}

.secondary-button {
    background: #e9f8f0;
    color: #078b49;
}

.notice {
    padding: 12px 14px;
    background: #f4f7fb;
    border-radius: 6px;
    color: #5e6573;
    line-height: 1.55;
    margin: 0 0 16px;
}

.notice.error {
    background: #fff1f1;
    color: #b42318;
}

.notice.success {
    background: #effaf5;
    color: #067647;
}

.muted {
    color: #818898;
    line-height: 1.6;
}

code {
    background: #f2f3f5;
    padding: 2px 5px;
    border-radius: 4px;
}

@media (max-width: 800px) {
    .auth-shell {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .brand-panel {
        min-height: 220px;
        border-radius: 8px 8px 0 0;
        padding: 32px;
    }

    .auth-card {
        min-height: auto;
        border-radius: 0 0 8px 8px;
        padding: 32px 24px;
    }

    .captcha-row {
        grid-template-columns: 1fr;
    }
}
