/**
 * Auth page styles for AI Blog Writer plugin.
 * Matches the AiBlogPress dark theme design.
 */

:root {
    --abp-dark: #0f0a1e;
    --abp-dark-card: #1a1333;
    --abp-purple: #7c3aed;
    --abp-purple-light: #a78bfa;
    --abp-gradient: linear-gradient(135deg, #7c3aed, #4f46e5);
}

/* Hide WP admin bar chrome on auth page */
#wpcontent {
    padding-left: 0 !important;
}

#wpbody-content {
    padding-bottom: 0;
}

.abp-auth-screen {
    min-height: 100vh;
    background: var(--abp-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    margin-left: -20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.abp-auth-card {
    background: var(--abp-dark-card);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 440px;
}

.abp-auth-logo {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, #a78bfa, #7c3aed, #4f46e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    padding-bottom: 8px;
    text-align: center;
    position: relative;
    z-index: 1;
    overflow: visible;
}

.abp-auth-card h2 {
    color: #fff;
    font-size: 24px;
    margin: 0 0 8px 0;
    padding: 0;
    line-height: 1.3;
    clear: both;
}

.abp-auth-subtitle {
    color: #94a3b8;
    margin-bottom: 28px;
    font-size: 14px;
}

.abp-auth-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 20px;
}

.abp-form-group {
    margin-bottom: 18px;
}

.abp-form-label {
    display: block;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
}

.abp-form-input {
    width: 100%;
    padding: 11px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: 0.2s;
}

.abp-form-input:focus {
    border-color: var(--abp-purple);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

.abp-form-input::placeholder {
    color: #475569;
}

.abp-form-helper {
    color: #64748b;
    font-size: 12px;
    margin-top: 4px;
}

.abp-auth-btn {
    width: 100%;
    padding: 12px;
    background: var(--abp-gradient);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: 0.2s;
}

.abp-auth-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.abp-auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.abp-auth-footer {
    text-align: center;
    margin-top: 20px;
    color: #64748b;
    font-size: 13px;
}

.abp-auth-footer a {
    color: var(--abp-purple-light);
    text-decoration: none;
    cursor: pointer;
}

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

/* Confirmation pending view */
.abp-confirmation-icon {
    font-size: 48px;
    text-align: center;
    margin-bottom: 16px;
}

.abp-confirmation-status {
    color: #94a3b8;
    text-align: center;
    font-size: 13px;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 480px) {
    .abp-auth-card {
        padding: 24px;
    }

    .abp-auth-screen {
        padding: 20px;
    }
}
