﻿:root {
    --page: #0f8b60;
    --panel: #143f33;
    --panel-soft: #194c3e;
    --brand: #19be87;
    --brand-dark: #11966a;
    --text: #ffffff;
    --muted: #d6ece5;
    --field: #f8fafc;
    --field-line: #c9d7e6;
    --ink: #09233d;
    --danger-bg: #ffe5e8;
    --danger: #ad1b2b;
    --ok-bg: #dcfce7;
    --ok: #166534;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Arial, sans-serif;
    background: radial-gradient(circle at top left, #1cc28b 0, #128a61 30%, #0d604b 68%, #0d3d34 100%);
    color: var(--text);
}

body.light-theme {
    --panel: #ffffff;
    --panel-soft: #f3f8f5;
    --text: #08233f;
    --muted: #527068;
    background: linear-gradient(135deg, #e8fff6 0%, #d4f3e8 46%, #edf7f3 100%);
}

.client-auth {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 26px 16px;
}

.auth-card {
    width: min(400px, 100%);
    background: var(--panel);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 20px;
    padding: 34px 34px 38px;
    box-shadow: 0 24px 60px rgba(3, 28, 22, .22);
    text-align: center;
}

.light-theme .auth-card {
    border-color: #cce1d9;
    box-shadow: 0 24px 50px rgba(17, 92, 71, .15);
}

.register-card { width: min(620px, 100%); }
.dashboard-card { width: min(560px, 100%); }

.brand-logo {
    display: block;
    width: 190px;
    max-width: 74%;
    margin: 0 auto 24px;
    object-fit: contain;
}

h1 {
    margin: 0;
    font-size: 28px;
    line-height: 1.16;
    font-weight: 800;
}

p {
    margin: 10px 0 26px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.45;
}

.theme-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 18px 0 22px;
    padding: 5px;
    border-radius: 10px;
    background: rgba(255,255,255,.08);
}

.light-theme .theme-switch { background: #eef6f2; }

.theme-btn {
    height: 36px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.theme-btn.active {
    background: var(--brand);
    color: #fff;
}

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

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

.input-row {
    position: relative;
    display: block;
    text-align: left;
}

.field-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-right: 1px solid #d9e4ef;
    background: #f1f6fb;
    color: #5f7490;
    border-radius: 8px 0 0 8px;
    pointer-events: none;
}

.field-icon svg,
.eye svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.register-card .input-row span:not(.field-icon) {
    display: block;
    margin: 0 0 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.register-card .input-row::before,
.register-card .field-icon { display: none; }

.input-row input {
    width: 100%;
    height: 44px;
    border: 1px solid var(--field-line);
    border-radius: 8px;
    background: var(--field);
    color: var(--ink);
    padding: 0 42px 0 58px;
    font: inherit;
    font-weight: 700;
    outline: none;
}

.input-row input::placeholder {
    color: #6b7d94;
    opacity: 1;
}

.register-card .input-row input { padding: 0 14px; }

.input-row input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(25, 190, 135, .14);
}

.password-row .eye {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border: 0;
    background: transparent;
    cursor: pointer;
    color: #70829a;
    display: grid;
    place-items: center;
}

.auth-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    align-items: center;
    margin: 2px 0 28px;
    font-weight: 800;
}

.auth-links a,
.soft-link {
    color: var(--brand);
    text-decoration: none;
    font-weight: 800;
}

.primary-btn {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 8px;
    background: var(--brand);
    color: #fff;
    font: inherit;
    font-size: 20px;
    font-weight: 800;
    cursor: pointer;
    display: grid;
    place-items: center;
    text-decoration: none;
}

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

.soft-link { display: inline-block; margin-top: 16px; }

.alert {
    margin: 18px 0;
    padding: 12px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    text-align: left;
}

.alert.error { background: var(--danger-bg); color: var(--danger); }
.alert.ok { background: var(--ok-bg); color: var(--ok); }

.profile-list {
    display: grid;
    gap: 10px;
    margin: 24px 0;
    text-align: left;
}

.profile-list div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 14px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    background: rgba(255,255,255,.05);
}

.profile-list span { color: var(--muted); }

@media (max-width: 560px) {
    .auth-card { padding: 28px 20px; }
    .two-cols { grid-template-columns: 1fr; }
    .auth-links { gap: 12px; flex-wrap: wrap; }
}

.google-btn {
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 8px;
    border: 1px solid var(--field-line);
    background: #fff;
    color: var(--ink);
    text-decoration: none;
    font-weight: 800;
}

.google-btn span {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #4285f4;
    font-weight: 900;
    background: #f5f8fc;
}

.google-access {margin-top:14px}
.auth-privacy {font-size:12px;margin:24px 0 0}
.auth-privacy a {color:var(--muted)}
button:focus-visible,a:focus-visible {outline:3px solid #ffa852;outline-offset:4px}
body:not(.light-theme) .brand-logo {filter:brightness(0) invert(1)}
