/* Quickbutik Partner: public pages (application, login, forgot and reset password). */
:root {
    --qb-font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --qb-text: #101828;
    --qb-text-secondary: #364153;
    --qb-text-muted: #71717b;
    --qb-accent: #5754f9;
    --qb-accent-soft: #f1f2ff;
    --qb-border: #e4e4e7;
    --qb-border-strong: #d4d4d8;
    --qb-surface: #ffffff;
    --qb-page: #f6f6fb;
    --qb-radius: 8px;
    --qb-radius-lg: 16px;
    --qb-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 24px 48px -24px rgba(16, 24, 40, 0.16);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--qb-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--qb-text);
    background-color: var(--qb-page);
    background-image: linear-gradient(180deg, #ffffff 0, var(--qb-accent-soft) 320px, var(--qb-page) 100%);
    background-repeat: no-repeat;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--qb-accent);
    text-decoration: none;
    font-weight: 500;
}

a:hover {
    text-decoration: underline;
}

.auth {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 48px 16px 40px;
}

.auth__logo {
    display: inline-flex;
    margin-bottom: 28px;
}

.auth__logo img {
    display: block;
    width: 44px;
    height: 44px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    padding: 40px;
    background: var(--qb-surface);
    border: 1px solid var(--qb-border);
    border-radius: var(--qb-radius-lg);
    box-shadow: var(--qb-shadow);
}

.auth-card--wide {
    max-width: 560px;
}

.auth-card h1 {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: center;
}

.auth-card--wide h1 {
    font-size: 30px;
    text-align: left;
}

.auth-lead {
    margin: 0;
    font-size: 15px;
    color: var(--qb-text-secondary);
    text-align: center;
}

.auth-card--wide .auth-lead {
    text-align: left;
}

.auth-benefits {
    margin: 24px 0 0;
    padding: 20px;
    background: var(--qb-accent-soft);
    border-radius: var(--qb-radius);
}

.auth-benefits strong {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

.auth-benefits ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.auth-benefits li {
    position: relative;
    margin: 6px 0;
    padding-left: 28px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--qb-text-secondary);
}

.auth-benefits li::before {
    content: "";
    position: absolute;
    top: 1px;
    left: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--qb-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.5l2.5 2.5 4.5-5'/%3E%3C/svg%3E") center / 10px no-repeat;
}

.auth-steps {
    margin: 20px 0 0;
    font-size: 14px;
    color: var(--qb-text-secondary);
}

.auth-form {
    margin-top: 24px;
}

.field {
    margin-bottom: 16px;
}

.field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--qb-text);
}

.input,
.select,
.textarea {
    display: block;
    width: 100%;
    padding: 11px 14px;
    font: inherit;
    font-size: 15px;
    line-height: 1.5;
    color: var(--qb-text);
    background: #ffffff;
    border: 1px solid var(--qb-border-strong);
    border-radius: var(--qb-radius);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.input::placeholder,
.textarea::placeholder {
    color: #9a9aa5;
}

.input:focus,
.select:focus,
.textarea:focus {
    outline: none;
    border-color: var(--qb-accent);
    box-shadow: 0 0 0 4px rgba(87, 84, 249, 0.14);
}

.textarea {
    min-height: 112px;
    resize: vertical;
}

.select {
    padding-right: 40px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23364153' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    color: #ffffff;
    background: var(--qb-text);
    border: 0;
    border-radius: var(--qb-radius);
    cursor: pointer;
    transition: background-color 0.15s, transform 0.05s;
}

.btn:hover {
    background: #1d2939;
}

.btn:active {
    transform: translateY(1px);
}

.btn:disabled {
    opacity: 0.6;
    cursor: default;
}

.btn svg {
    width: 16px;
    height: 16px;
}

.alert {
    margin: 0 0 16px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.5;
    border-radius: var(--qb-radius);
}

.alert--error {
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.alert--success {
    color: #065f46;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
}

.auth-links {
    margin: 20px 0 0;
    font-size: 14px;
    line-height: 1.7;
    color: var(--qb-text-secondary);
    text-align: center;
}

.auth-success {
    text-align: center;
}

.auth-success h1,
.auth-success .auth-lead {
    text-align: center;
}

.auth-success__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    color: var(--qb-accent);
    background: var(--qb-accent-soft);
    border-radius: 50%;
}

.auth-success__icon svg {
    width: 26px;
    height: 26px;
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.auth-footer {
    margin-top: 32px;
    font-size: 13px;
    color: var(--qb-text-muted);
    text-align: center;
}

.auth-footer a {
    color: inherit;
    font-weight: 400;
}

@media (max-width: 600px) {
    .auth {
        padding: 32px 16px;
    }

    .auth-card {
        padding: 28px 20px;
        border-radius: 12px;
    }

    .auth-card h1,
    .auth-card--wide h1 {
        font-size: 24px;
    }
}
