/* Full-viewport shell: must span width so flex centering works (login-only styles). */
.auth-page {
    box-sizing: border-box;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: linear-gradient(
        160deg,
        color-mix(in srgb, var(--pc-bg, #f8fafc) 100%, transparent) 0%,
        color-mix(in srgb, var(--pc-accent, #2563eb) 9%, var(--pc-bg, #f8fafc)) 45%,
        color-mix(in srgb, var(--pc-surface-2, #f1f5f9) 80%, transparent) 100%
    );
}

.auth-card {
    width: 100%;
    max-width: 420px;
    flex-shrink: 0;
    background: var(--pc-surface);
    border: 1px solid var(--pc-border);
    border-radius: 16px;
    box-shadow: var(--pc-shadow);
    overflow: hidden;
    animation: auth-slide-up 0.5s ease;
}

@keyframes auth-slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    padding: 40px 32px 32px;
    background: linear-gradient(135deg, var(--pc-surface-2) 0%, var(--pc-surface) 100%);
    border-bottom: 1px solid var(--pc-border);
    text-align: center;
}

.auth-logo {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--pc-accent), rgba(37, 99, 235, 0.7));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.auth-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--pc-text);
    margin: 0 0 8px;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--pc-text-muted);
    margin: 0;
}

.auth-body {
    padding: 32px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--pc-text);
}

.auth-input {
    padding: 12px 14px;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.4;
    color: var(--pc-text);
    background: var(--pc-surface);
    border: 1.5px solid var(--pc-border);
    border-radius: 10px;
    outline: none;
    transition: all 0.2s ease;
}

.auth-input:hover {
    border-color: rgba(15, 23, 42, 0.15);
}

.auth-input:focus {
    border-color: var(--pc-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.auth-input::placeholder {
    color: rgba(71, 85, 105, 0.5);
}

.auth-button {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    background: var(--pc-accent);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-button:hover:not(:disabled) {
    background: var(--pc-accent-2);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
    transform: translateY(-2px);
}

.auth-button:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(37, 99, 235, 0.2);
}

.auth-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-alert {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    border-left: 4px solid;
    font-size: 13px;
}

.auth-alert.error {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.65);
    color: rgba(185, 28, 28, 0.95);
}

.auth-footer {
    padding: 20px 32px;
    background: var(--pc-surface-2);
    border-top: 1px solid var(--pc-border);
    text-align: center;
    font-size: 13px;
    color: var(--pc-text-muted);
}

@media (max-width: 640px) {
    .auth-card {
        box-shadow: none;
        border: none;
    }

    .auth-header {
        padding: 32px 24px 24px;
    }

    .auth-body {
        padding: 24px;
    }

    .auth-footer {
        padding: 16px 24px;
    }
}
