/* ===================== AUTH PAGES STYLES ===================== */
/* Modern SaaS Authentication UI */

:root {
    --auth-bg: #09090b;
    --auth-card: #18181b;
    --auth-border: #27272a;
    --auth-primary: #6366f1;
    --auth-primary-hover: #818cf8;
    --auth-text: #fafafa;
    --auth-text-muted: #a1a1aa;
    --auth-error: #ef4444;
    --auth-success: #22c55e;
    --auth-radius: 12px;
}

.copilot-auth-body {
    margin: 0;
    padding: 0;
    background: var(--auth-bg);
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.15), transparent),
        var(--auth-bg);
}

.auth-card {
    background: var(--auth-card);
    border: 1px solid var(--auth-border);
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

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

.auth-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--auth-primary), #8b5cf6);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
}

.auth-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--auth-text);
    margin: 0 0 8px;
}

.auth-header p {
    font-size: 15px;
    color: var(--auth-text-muted);
    margin: 0;
}

/* Alerts */
.auth-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
}

.auth-alert.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--auth-error);
}

.auth-alert.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: var(--auth-success);
}

/* Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--auth-text);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 14px;
    color: var(--auth-text-muted);
    font-size: 14px;
}

.input-wrapper input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    background: var(--auth-bg);
    border: 1px solid var(--auth-border);
    border-radius: 8px;
    font-size: 15px;
    color: var(--auth-text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.input-wrapper input::placeholder {
    color: var(--auth-text-muted);
}

/* Buttons */
.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    border: none;
    text-decoration: none;
}

.auth-btn.primary {
    background: var(--auth-primary);
    color: white;
}

.auth-btn.primary:hover {
    background: var(--auth-primary-hover);
    transform: translateY(-1px);
}

.auth-btn.large {
    padding: 16px 28px;
    font-size: 16px;
}

.auth-btn.social {
    background: transparent;
    border: 1px solid var(--auth-border);
    color: var(--auth-text);
}

.auth-btn.social:hover:not(:disabled) {
    background: var(--auth-bg);
    border-color: var(--auth-text-muted);
}

.auth-btn.social:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
}

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

.auth-divider span {
    color: var(--auth-text-muted);
    font-size: 13px;
}

/* Footer */
.auth-footer {
    text-align: center;
    margin-top: 24px;
}

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

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

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

/* Onboarding Card */
.onboarding-card {
    background: var(--auth-card);
    border: 1px solid var(--auth-border);
    border-radius: 16px;
    padding: 48px;
    width: 100%;
    max-width: 520px;
    text-align: center;
}

.step-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.step-icon.success {
    background: linear-gradient(135deg, var(--auth-success), #16a34a);
    color: white;
}

.onboarding-card h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--auth-text);
    margin: 0 0 12px;
}

.onboarding-card .subtitle {
    font-size: 16px;
    color: var(--auth-text-muted);
    margin: 0 0 32px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.feature-item {
    padding: 20px;
    background: var(--auth-bg);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.feature-item i {
    font-size: 24px;
    color: var(--auth-primary);
}

.feature-item span {
    font-size: 13px;
    color: var(--auth-text-muted);
}

/* Responsive */
@media (max-width: 480px) {

    .auth-card,
    .onboarding-card {
        padding: 28px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }
}