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

:root {
    --auth-border: 1.5px solid var(--border-color);
    --auth-btn-shadow: 0 8px 22px -6px rgba(91, 84, 255, 0.35), 0 2px 6px -2px rgba(124, 58, 237, 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: 28px 28px 32px;
    background-color: var(--bg-primary);
    border-radius: 16px;
    border: 1px solid var(--header-border);
    box-shadow: var(--header-shadow);
}

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

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

.auth-header .title {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.3px;
    color: var(--text-primary);
}

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

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

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

.form-control:focus {
    border-color: var(--primary-color);
}

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

.auth-btn {
    width: 100%;
    height: 50px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #5b54ff 0%, #7c3aed 55%, #a855f7 100%);
    background-size: 180% 180%;
    background-position: 0% 50%;
    color: #fff;
    border-radius: 12px;
    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: 20px;
    }

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