:root {
    --gpt-bg: #ffffff;
    --gpt-surface: #f7f7f8;
    --gpt-border: #e5e5e5;
    --gpt-text: #0d0d0d;
    --gpt-muted: #6e6e80;
    --gpt-accent: #10a37f;
    --gpt-accent-hover: #0e8f6f;
    --gpt-danger: #d1293d;
    --gpt-radius: 12px;
}

* {
    box-sizing: border-box;
}

body.auth-body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gpt-bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", ui-sans-serif, "Helvetica Neue", Arial, sans-serif;
    color: var(--gpt-text);
    padding: 24px;
}

.auth-wrapper {
    width: 100%;
    max-width: 400px;
}

.auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-header .logo-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gpt-text);
    margin: 0 auto 16px;
}

.auth-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 4px;
}

.auth-header p {
    font-size: 0.9rem;
    color: var(--gpt-muted);
    margin: 0;
}

.auth-card {
    background: var(--gpt-bg);
    border: 1px solid var(--gpt-border);
    border-radius: var(--gpt-radius);
    padding: 28px 24px;
}

.field {
    margin-bottom: 14px;
}

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

.field input {
    width: 100%;
    padding: 11px 14px;
    font-size: 0.95rem;
    border: 1px solid var(--gpt-border);
    border-radius: 10px;
    background: var(--gpt-surface);
    color: var(--gpt-text);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input::placeholder {
    color: #9a9aa5;
}

.field input:focus {
    border-color: var(--gpt-text);
    box-shadow: 0 0 0 3px rgba(13, 13, 13, 0.06);
    background: var(--gpt-bg);
}

.field .text-danger {
    display: block;
    font-size: 0.78rem;
    color: var(--gpt-danger);
    margin-top: 5px;
}

.validation-summary {
    font-size: 0.85rem;
    color: var(--gpt-danger);
    margin-bottom: 12px;
}

.remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.remember-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--gpt-text);
    cursor: pointer;
}

.remember-check-input {
    width: 16px;
    height: 16px;
    accent-color: var(--gpt-text);
    cursor: pointer;
}

.remember-row .forgot-link {
    font-size: 0.85rem;
    color: var(--gpt-muted);
    text-decoration: none;
}

.remember-row .forgot-link:hover {
    color: var(--gpt-text);
    text-decoration: underline;
}

.btn-primary {
    width: 100%;
    padding: 11px 14px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    background: var(--gpt-text);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s ease;
    margin-top: 4px;
}

.btn-primary:hover {
    background: #2b2b2b;
}

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0;
    color: var(--gpt-muted);
    font-size: 0.8rem;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--gpt-border);
}

.btn-external {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gpt-text);
    background: var(--gpt-bg);
    border: 1px solid var(--gpt-border);
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 10px;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-external:hover {
    background: var(--gpt-surface);
    border-color: #cfcfcf;
}

.no-providers {
    font-size: 0.85rem;
    color: var(--gpt-muted);
    text-align: center;
    line-height: 1.5;
}

.no-providers a {
    color: var(--gpt-accent);
    text-decoration: none;
}

.no-providers a:hover {
    text-decoration: underline;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--gpt-muted);
}

.auth-footer a {
    color: var(--gpt-text);
    font-weight: 500;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-links {
    text-align: center;
    margin-top: 16px;
}

.auth-links p {
    margin: 6px 0;
    font-size: 0.85rem;
}

.auth-links a {
    color: var(--gpt-muted);
    text-decoration: none;
}

.auth-links a:hover {
    color: var(--gpt-text);
    text-decoration: underline;
}

:root {
    --gpt-bg: #ffffff;
    --gpt-surface: #f7f7f8;
    --gpt-border: #e5e5e5;
    --gpt-text: #0d0d0d;
    --gpt-muted: #6e6e80;
    --gpt-accent: #10a37f;
    --gpt-accent-hover: #0e8f6f;
    --gpt-danger: #d1293d;
    --gpt-radius: 12px;
}

* {
    box-sizing: border-box;
}

body.auth-body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gpt-bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", ui-sans-serif, "Helvetica Neue", Arial, sans-serif;
    color: var(--gpt-text);
    padding: 24px;
}

.auth-wrapper {
    width: 100%;
    max-width: 400px;
}

.auth-header {
    text-align: center;
    margin-bottom: 28px;
}

    .auth-header .logo-dot {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: var(--gpt-text);
        margin: 0 auto 16px;
    }

    .auth-header h1 {
        font-size: 1.5rem;
        font-weight: 600;
        margin: 0 0 4px;
    }

    .auth-header p {
        font-size: 0.9rem;
        color: var(--gpt-muted);
        margin: 0;
    }

.auth-card {
    background: var(--gpt-bg);
    border: 1px solid var(--gpt-border);
    border-radius: var(--gpt-radius);
    padding: 28px 24px;
}

.field {
    margin-bottom: 14px;
}

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

    .field input {
        width: 100%;
        padding: 11px 14px;
        font-size: 0.95rem;
        border: 1px solid var(--gpt-border);
        border-radius: 10px;
        background: var(--gpt-surface);
        color: var(--gpt-text);
        outline: none;
        transition: border-color 0.15s ease, box-shadow 0.15s ease;
    }

        .field input::placeholder {
            color: #9a9aa5;
        }

        .field input:focus {
            border-color: var(--gpt-text);
            box-shadow: 0 0 0 3px rgba(13, 13, 13, 0.06);
            background: var(--gpt-bg);
        }

    .field .text-danger {
        display: block;
        font-size: 0.78rem;
        color: var(--gpt-danger);
        margin-top: 5px;
    }

.validation-summary {
    font-size: 0.85rem;
    color: var(--gpt-danger);
    margin-bottom: 12px;
}

.remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.remember-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--gpt-text);
    cursor: pointer;
}

.remember-check-input {
    width: 16px;
    height: 16px;
    accent-color: var(--gpt-text);
    cursor: pointer;
}

.remember-row .forgot-link {
    font-size: 0.85rem;
    color: var(--gpt-muted);
    text-decoration: none;
}

    .remember-row .forgot-link:hover {
        color: var(--gpt-text);
        text-decoration: underline;
    }

.btn-primary {
    width: 100%;
    padding: 11px 14px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    background: var(--gpt-text);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s ease;
    margin-top: 4px;
}

    .btn-primary:hover {
        background: #2b2b2b;
    }

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0;
    color: var(--gpt-muted);
    font-size: 0.8rem;
}

    .divider::before,
    .divider::after {
        content: "";
        flex: 1;
        height: 1px;
        background: var(--gpt-border);
    }

.btn-external {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gpt-text);
    background: var(--gpt-bg);
    border: 1px solid var(--gpt-border);
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 10px;
    transition: background 0.15s ease, border-color 0.15s ease;
}

    .btn-external:hover {
        background: var(--gpt-surface);
        border-color: #cfcfcf;
    }

.no-providers {
    font-size: 0.85rem;
    color: var(--gpt-muted);
    text-align: center;
    line-height: 1.5;
}

    .no-providers a {
        color: var(--gpt-accent);
        text-decoration: none;
    }

        .no-providers a:hover {
            text-decoration: underline;
        }

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--gpt-muted);
}

    .auth-footer a {
        color: var(--gpt-text);
        font-weight: 500;
        text-decoration: none;
    }

        .auth-footer a:hover {
            text-decoration: underline;
        }

.auth-links {
    text-align: center;
    margin-top: 16px;
}

    .auth-links p {
        margin: 6px 0;
        font-size: 0.85rem;
    }

    .auth-links a {
        color: var(--gpt-muted);
        text-decoration: none;
    }

        .auth-links a:hover {
            color: var(--gpt-text);
            text-decoration: underline;
        }

/* Manage account side nav */
.manage-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

    .manage-nav .nav-item {
        display: block;
    }

.manage-nav-link {
    display: block;
    padding: 9px 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gpt-text);
    background: transparent;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.15s ease;
}

    .manage-nav-link:hover {
        background: var(--gpt-surface);
        color: var(--gpt-text);
    }

    .manage-nav-link.active {
        background: var(--gpt-text);
        color: #fff;
    }