body.auth-body {
    min-height: 100vh;
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(255, 186, 59, 0.18), transparent 28%),
        radial-gradient(circle at bottom right, rgba(0, 128, 128, 0.18), transparent 24%),
        #f5efe3;
    color: #1f2d3d;
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    box-sizing: border-box;
}

.auth-card {
    width: min(980px, 100%);
    background: rgba(255, 252, 247, 0.96);
    border: 1px solid rgba(209, 184, 142, 0.45);
    border-radius: 28px;
    box-shadow: 0 28px 60px rgba(117, 92, 43, 0.14);
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr);
    overflow: hidden;
}

.auth-branding {
    background: linear-gradient(180deg, #185f5f 0%, #236a6a 100%);
    color: #fdf7ee;
    padding: 42px 34px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-mark {
    width: 88px;
    height: 88px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.auth-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.auth-mark-fallback {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    background: linear-gradient(135deg, #ffcf57, #f0a900);
    color: #0e4e53;
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 0.08em;
}

.auth-mark.is-fallback .auth-mark-fallback {
    display: inline-flex;
}

.auth-branding h1,
.auth-form-wrap h2 {
    margin: 0;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.1;
}

.auth-branding p,
.auth-form-wrap p {
    margin: 0;
    line-height: 1.65;
}

.auth-features {
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.auth-features li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-features i {
    color: #ffd76d;
}

.auth-form-wrap {
    padding: 40px 34px;
}

.auth-kicker {
    margin-bottom: 8px;
    color: #0b7b7c;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.auth-form {
    margin-top: 24px;
    display: grid;
    gap: 16px;
}

.auth-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.auth-field {
    display: grid;
    gap: 8px;
}

.auth-field.auth-span-2 {
    grid-column: 1 / -1;
}

.auth-field label {
    font-weight: 700;
    color: #165f60;
}

.auth-field input,
.auth-field select {
    width: 100%;
    box-sizing: border-box;
    min-height: 50px;
    border-radius: 16px;
    border: 1px solid rgba(214, 177, 120, 0.72);
    background: #f7fbff;
    padding: 0 16px;
    font-size: 16px;
    color: #243447;
    outline: none;
}

.auth-field input:focus,
.auth-field select:focus {
    border-color: #18a9aa;
    box-shadow: 0 0 0 4px rgba(24, 169, 170, 0.12);
}

.auth-password-wrap {
    position: relative;
}

.auth-password-wrap input {
    padding-right: 52px;
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 12px;
    background: rgba(15, 118, 110, 0.08);
    color: #0f766e;
    cursor: pointer;
}

.auth-password-toggle:hover {
    background: rgba(15, 118, 110, 0.14);
}

.auth-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 4px;
}

.auth-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #4a5d72;
    font-weight: 600;
}

.auth-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: #0f8f91;
}

.auth-submit {
    min-height: 52px;
    border: 0;
    border-radius: 16px;
    padding: 0 22px;
    background: linear-gradient(135deg, #10999a, #147c7e);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.auth-submit:hover {
    filter: brightness(1.03);
}

.auth-link {
    color: #0b7b7c;
    font-weight: 700;
    text-decoration: none;
}

.auth-link:hover {
    text-decoration: underline;
}

.auth-alert {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    font-weight: 600;
}

.auth-alert.success {
    background: #e6f9ef;
    border: 1px solid #8be0ae;
    color: #156a3c;
}

.auth-alert.error {
    background: #fff0ef;
    border: 1px solid #f0aaa4;
    color: #ac2d24;
}

.auth-note {
    margin-top: 18px;
    color: #627488;
    font-size: 14px;
}

@media (max-width: 920px) {
    .auth-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .auth-shell {
        padding: 18px;
    }

    .auth-branding,
    .auth-form-wrap {
        padding: 26px 22px;
    }

    .auth-grid {
        grid-template-columns: 1fr;
    }

    .auth-actions {
        flex-direction: column;
        align-items: stretch;
    }
}
