/* Auth forms — inherits colors / theme from app.css (landing). */

:root {
    --auth-border: 1px solid var(--border-color);
    --auth-btn-shadow: 0 8px 22px -6px rgba(26, 24, 20, 0.18), 0 2px 6px -2px rgba(154, 123, 79, 0.25);
}

a {
    text-decoration: none;
    color: inherit;
}

.mb-20 {
    margin-bottom: 20px;
}

.p-20 {
    padding: 20px;
}

.auth-main {
    flex: 1;
    min-height: 0;
}

.auth-container {
    width: 100%;
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    padding: 32px 16px 56px;
}

.auth-wrapper {
    width: 100%;
    max-width: 420px;
    padding: 32px 32px 36px;
    background-color: var(--bg-primary);
    border-radius: 20px;
    border: 1px solid var(--header-border);
    box-shadow: var(--box-shadow);
}

body.auth-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

.auth-page-brand {
    display: flex;
    justify-content: center;
    padding: 8px 16px 0;
}

.auth-brand-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.auth-brand-logo {
    height: 42px;
    width: auto;
    max-width: min(220px, 70vw);
    object-fit: contain;
}

.auth-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
    text-align: center;
}

.auth-header .title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--heading-color);
}

.auth-header .description {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 400;
}

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

.form-control {
    width: 100%;
    height: 50px;
    padding: 14px 18px;
    border: var(--auth-border);
    outline: none;
    border-radius: 14px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.form-control::placeholder {
    font-size: 14px;
    color: var(--text-muted);
}

.auth-btn {
    width: 100%;
    height: 50px;
    padding: 14px 18px;
    background: var(--brand-grad);
    background-size: 180% 180%;
    background-position: 0% 50%;
    color: #fff;
    border-radius: 14px;
    box-shadow: var(--auth-btn-shadow);
    border: 1px solid rgba(255, 255, 255, 0.18);
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: background-position 0.35s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.auth-btn:hover {
    background-position: 100% 50%;
    transform: translateY(-1px);
}

.auth-terms {
    margin-top: 4px;
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.auth-terms-link {
    color: var(--text-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.auth-terms-link:hover {
    color: var(--primary-color);
}

.auth-footer {
    margin-top: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-footer-line {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.auth-footer-link {
    color: var(--text-primary);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.auth-footer-link:hover {
    color: var(--primary-color);
}

.auth-footer-link--block {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
}

@media (max-width: 576px) {
    .auth-container {
        min-height: calc(100vh - 64px);
        padding: 24px 16px 48px;
        align-items: flex-start;
    }

    .auth-wrapper {
        width: 100%;
        max-width: none;
        padding: 24px 20px 28px;
    }

    .auth-header .title {
        font-size: 24px;
    }

    .auth-header .description {
        font-size: 14px;
    }
}
