/* Login page */

.auth-topbar {
    height: 56px;
    background: var(--blue-700);
    color: #fff;
    display: flex;
    align-items: center;
    padding: 0 18px;
    box-shadow: 0 2px 0 rgba(9, 30, 66, 0.2);
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.auth-brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #fff;
    padding: 4px;
    object-fit: contain;
}

.auth-brand-text {
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.auth-page {
    min-height: calc(100vh - 56px - 52px);
    display: grid;
    place-items: center;
    padding: 28px 16px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 26px 24px;
}

.auth-title {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
}

.auth-subtitle {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.4;
}

.auth-form {
    display: grid;
    gap: 10px;
}

.field-label {
    font-size: 12.5px;
    font-weight: 700;
    margin-top: 4px;
}

.field-input {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
    background: #fff;
    color: var(--text);
    font: inherit;
}

.field-input:focus {
    border-color: #4C9AFF;
    box-shadow: var(--focus);
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 2px;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.checkbox-label input {
    width: 16px;
    height: 16px;
}

.link {
    color: var(--blue-600);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

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

.btn {
    height: 40px;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    font: inherit;
    font-size: 13.5px;
    font-weight: 800;
    padding: 0 14px;
}

.btn-primary {
    background: var(--blue-600);
    color: #fff;
    margin-top: 6px;
}

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

.btn-primary:focus {
    outline: none;
    box-shadow: var(--focus);
}

.alert {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13.5px;
    line-height: 1.4;
    border: 1px solid transparent;
}

.alert-error {
    background: rgba(255, 86, 48, 0.12);
    border-color: rgba(255, 86, 48, 0.28);
    color: var(--danger);
}

.auth-footer {
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 12.5px;
    padding: 0 14px;
}

@media (max-width: 480px) {
    .auth-topbar {
        padding: 0 14px;
    }

    .auth-brand-text {
        font-size: 14px;
    }

    .auth-card {
        padding: 22px 18px;
    }

    .auth-row {
        align-items: flex-start;
        flex-direction: column;
    }
}
