/* ==========================================================================
   Сторінка login (layouts/auth_v2 + auth/login_v2)
   ========================================================================== */

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

.auth-card {
    width: 100%;
    max-width: 400px;
    padding: 32px 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    box-shadow: var(--shadow);
}

.auth-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.auth-logo img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    border-radius: 16px;
    background: #fff;
}

.auth-title {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
}

.auth-sub {
    margin: 0 0 24px;
    color: var(--muted);
    text-align: center;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.auth-field label {
    margin: 0;
    font-size: 12px;
    font-weight: 400;
    color: var(--muted);
}

.auth-input {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg);
}

.auth-input:hover {
    border-color: #CDD2DB;
}

.auth-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-bg);
}

.auth-input.is-invalid {
    border-color: var(--danger);
}

.auth-error {
    font-size: 12px;
    color: var(--danger);
}

.auth-alert {
    margin-bottom: 16px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
}

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

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-weight: 400;
    color: var(--muted);
    cursor: pointer;
}

.auth-check input {
    margin: 0;
    accent-color: var(--primary);
}

.auth-link {
    color: var(--accent);
    text-decoration: none;
}

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

.auth-btn {
    height: 40px;
    border: 1px solid var(--primary);
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    font-weight: 500;
}

.auth-btn:hover {
    background: var(--primary-h);
    border-color: var(--primary-h);
}

.auth-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
