:root {
    --bg: #f4f2ed;
    --surface: #fffdfa;
    --line: #ded5c9;
    --text: #27231d;
    --muted: #665f55;
    --primary: #b46a2b;
    --primary-strong: #8f5221;
    --shadow: 0 14px 30px rgba(77, 59, 34, 0.12);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    color: var(--text);
    font-family: "Manrope", sans-serif;
    background:
        radial-gradient(circle at top right, rgba(180, 106, 43, 0.14), transparent 38%),
        radial-gradient(circle at bottom left, rgba(62, 140, 64, 0.08), transparent 42%),
        var(--bg);
}

.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px 18px;
}

.login-card {
    background: linear-gradient(130deg, #fff9ef, #f5efe3 65%, #efe7da);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 40px 36px 32px;
    width: 100%;
    max-width: 380px;
}

.login-logo {
    text-align: center;
    margin-bottom: 28px;
}

.login-logo-img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    display: block;
    margin: 0 auto 14px;
    border-radius: 50%;
    box-shadow: 0 6px 20px rgba(77, 59, 34, 0.22);
}

.login-logo p {
    margin: 0;
    text-transform: uppercase;
    font-size: 0.74rem;
    letter-spacing: 0.05em;
    color: var(--muted);
    font-weight: 700;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.field label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.field input {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text);
    outline: none;
    transition: border-color 0.15s;
}

.field input:focus {
    border-color: var(--primary);
}

.btn-primary {
    display: block;
    width: 100%;
    padding: 11px;
    border: none;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    font-size: 0.95rem;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
    margin-top: 8px;
}

.btn-primary:hover {
    background: var(--primary-strong);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.tabs {
    display: flex;
    gap: 4px;
    background: var(--bg);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 24px;
}

.tab {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 7px;
    background: transparent;
    font-size: 0.88rem;
    font-family: inherit;
    font-weight: 700;
    color: var(--muted);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.tab.active {
    background: var(--surface);
    color: var(--primary);
    box-shadow: 0 1px 4px rgba(77, 59, 34, 0.1);
}

.tab-panel.hidden {
    display: none;
}

.feedback-msg {
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.87rem;
    display: none;
}

.feedback-msg.show {
    display: block;
}

.error-msg {
    background: rgba(200, 50, 50, 0.08);
    border: 1px solid rgba(200, 50, 50, 0.25);
    color: #b52a2a;
}

.success-msg {
    background: rgba(50, 140, 50, 0.08);
    border: 1px solid rgba(50, 140, 50, 0.25);
    color: #2a7a2a;
}
