:root {
    --kerwe-primary: #2a816d;
    --kerwe-secondary: #439a86;
    --kerwe-white: #ffffff;
    --kerwe-text: #1f2933;
    --kerwe-muted: #64748b;
    --kerwe-border: #d8e3df;
    --kerwe-bg: #f4f8f6;
    --kerwe-danger: #b42318;
}

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

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(67, 154, 134, 0.12), transparent 32rem),
        linear-gradient(180deg, #f7fbf9 0%, #eef6f3 100%);
    color: var(--kerwe-text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#layout {
    min-height: 100vh;
}

.kerwe-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.kerwe-main {
    flex: 1;
    display: grid;
    place-items: center;
    padding: 48px 20px;
}

.kerwe-card {
    width: 100%;
    max-width: 440px;
    background: var(--kerwe-white);
    border: 1px solid var(--kerwe-border);
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(17, 24, 39, 0.12);
    padding: 34px;
}

.kerwe-logo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.kerwe-logo {
    max-width: 180px;
    max-height: 110px;
    height: auto;
    width: auto;
}

.kerwe-title {
    margin: 0;
    text-align: center;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 750;
    letter-spacing: -0.02em;
    color: var(--kerwe-primary);
}

.kerwe-subtitle {
    margin: 10px 0 0;
    text-align: center;
    color: var(--kerwe-muted);
    font-size: 15px;
    line-height: 1.5;
}

.kerwe-hint {
    margin: 24px 0;
    padding: 14px 16px;
    border-radius: 14px;
    background: #edf7f4;
    border: 1px solid #cfe7df;
    color: #245e52;
    font-size: 14px;
    line-height: 1.45;
}

.kerwe-form {
    margin-top: 22px;
}

.kerwe-field {
    margin-bottom: 16px;
}

.kerwe-field a {
    color: #245e52;
    text-decoration: none;
}

.kerwe-field a:hover {
    text-decoration: underline;
}




.kerwe-label {
    display: block;
    margin-bottom: 7px;
    font-weight: 650;
    font-size: 14px;
    color: #263238;
}

.kerwe-input {
    width: 100%;
    box-sizing: border-box;
    appearance: none;
    border: 1px solid #cbd8d4;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 16px;
    color: var(--kerwe-text);
    background: #ffffff;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.kerwe-input:focus {
    border-color: var(--kerwe-secondary);
    box-shadow: 0 0 0 4px rgba(67, 154, 134, 0.18);
}

.kerwe-button {
    width: 100%;
    margin-top: 8px;
    border: 0;
    border-radius: 12px;
    padding: 13px 16px;
    background: var(--kerwe-primary);
    color: var(--kerwe-white);
    font-size: 16px;
    font-weight: 750;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.05s ease;
}

.kerwe-button:hover {
    background: #236f5f;
}

.kerwe-button:active {
    transform: translateY(1px);
}

.kerwe-error {
    margin: 18px 0 0;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #f3b8b1;
    background: #fff4f2;
    color: var(--kerwe-danger);
    font-size: 14px;
    line-height: 1.45;
}

.kerwe-help {
    margin-top: 22px;
    border-top: 1px solid #e5eeeb;
    padding-top: 18px;
    color: var(--kerwe-muted);
    font-size: 13px;
    line-height: 1.45;
}

.kerwe-help strong {
    color: var(--kerwe-text);
}

.kerwe-footer {
    padding: 24px 20px 34px;
    color: #60736e;
    font-size: 13px;
    text-align: center;
}

.kerwe-footer details {
    max-width: 720px;
    margin: 0 auto;
}

.kerwe-footer summary {
    cursor: pointer;
    color: var(--kerwe-primary);
    font-weight: 650;
}

.kerwe-footer-content {
    margin-top: 12px;
    line-height: 1.55;
}

.kerwe-footer-content p {
    margin: 6px 0;
}

@media (max-width: 520px) {
    .kerwe-main {
        padding: 28px 14px;
    }

    .kerwe-card {
        padding: 26px 20px;
        border-radius: 18px;
    }

    .kerwe-title {
        font-size: 24px;
    }
}
