:root {
    --ws-bg: #f3f6f2;
    --ws-bg-accent: #e7eee6;
    --ws-surface: #ffffff;
    --ws-text: #1c241c;
    --ws-muted: #5a675a;
    --ws-line: #c9d4c7;
    --ws-accent: #2f6b3a;
    --ws-accent-hover: #24552e;
    --ws-shadow: 0 10px 30px rgba(28, 36, 28, 0.08);
    --ws-radius: 14px;
    --ws-font: "Segoe UI", "Trebuchet MS", sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: var(--ws-font);
    color: var(--ws-text);
    background:
        radial-gradient(circle at top left, #ffffff 0%, transparent 42%),
        linear-gradient(180deg, var(--ws-bg) 0%, var(--ws-bg-accent) 100%);
    line-height: 1.5;
}

a {
    color: var(--ws-accent);
    text-decoration: none;
}

a:hover {
    color: var(--ws-accent-hover);
    text-decoration: underline;
}

.ws-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 28px;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--ws-line);
    position: sticky;
    top: 0;
    backdrop-filter: blur(6px);
}

.ws-brand {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--ws-text);
    text-decoration: none;
}

.ws-brand:hover {
    color: var(--ws-accent);
    text-decoration: none;
}

.ws-nav {
    display: flex;
    gap: 18px;
    font-weight: 600;
}

.ws-main {
    width: min(960px, calc(100% - 32px));
    margin: 36px auto 48px;
}

.ws-panel {
    background: var(--ws-surface);
    border: 1px solid var(--ws-line);
    border-radius: var(--ws-radius);
    box-shadow: var(--ws-shadow);
    padding: 28px 30px;
}

.ws-panel h1 {
    margin: 0 0 12px;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    line-height: 1.15;
}

.ws-lead {
    margin: 0 0 22px;
    color: var(--ws-muted);
    font-size: 1.05rem;
    max-width: 38rem;
}

.ws-section-title {
    margin: 28px 0 10px;
    font-size: 1.15rem;
    line-height: 1.3;
}

.ws-muted {
    margin: 0 0 8px;
    color: var(--ws-muted);
}

.ws-meta {
    margin: 0;
}

.ws-meta-row {
    display: grid;
    grid-template-columns: minmax(8rem, 11rem) 1fr;
    gap: 8px 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--ws-line);
}

.ws-meta-row dt {
    margin: 0;
    color: var(--ws-muted);
    font-weight: 600;
}

.ws-meta-row dd {
    margin: 0;
    word-break: break-word;
}

.ws-inline-form {
    display: inline;
    margin: 0;
}

.ws-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.ws-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-weight: 700;
    text-decoration: none;
}

.ws-btn:hover {
    text-decoration: none;
}

.ws-btn-primary {
    background: var(--ws-accent);
    color: #ffffff;
}

.ws-btn-primary:hover {
    background: var(--ws-accent-hover);
    color: #ffffff;
}

.ws-btn-secondary {
    background: #ffffff;
    color: var(--ws-text);
    border-color: var(--ws-line);
}

.ws-btn-secondary:hover {
    border-color: var(--ws-accent);
    color: var(--ws-accent);
}

.ws-footer {
    width: min(960px, calc(100% - 32px));
    margin: 0 auto 28px;
    color: var(--ws-muted);
    font-size: 0.92rem;
}

.ws-form {
    display: grid;
    gap: 16px;
    max-width: 28rem;
}

.ws-field {
    display: grid;
    gap: 6px;
    font-weight: 600;
}

.ws-field input {
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--ws-line);
    border-radius: 10px;
    font: inherit;
    color: var(--ws-text);
    background: #ffffff;
}

.ws-field input:focus {
    outline: 2px solid rgba(47, 107, 58, 0.25);
    border-color: var(--ws-accent);
}

.ws-password {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
}

.ws-password input {
    width: 100%;
}

.ws-password-toggle {
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--ws-line);
    border-radius: 10px;
    background: #ffffff;
    color: var(--ws-accent);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.ws-password-toggle:hover {
    border-color: var(--ws-accent);
    color: var(--ws-accent-hover);
}

.ws-hp {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.ws-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-weight: 500;
    color: var(--ws-muted);
}

.ws-check input {
    margin-top: 4px;
}

.ws-form-error {
    margin: 0 0 8px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #e2b6b6;
    background: #fff5f5;
    color: #7a2e2e;
    font-weight: 600;
}

.ws-nav-user {
    color: var(--ws-muted);
    font-weight: 600;
}

.ws-nav-form {
    display: inline;
    margin: 0;
}

.ws-nav-btn {
    border: 0;
    background: transparent;
    color: var(--ws-accent);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.ws-nav-btn:hover {
    color: var(--ws-accent-hover);
    text-decoration: underline;
}

button.ws-btn {
    cursor: pointer;
    font: inherit;
}

@media (max-width: 640px) {
    .ws-header {
        padding: 14px 16px;
        flex-direction: column;
        align-items: flex-start;
    }

    .ws-panel {
        padding: 22px 18px;
    }
}
