/**
 * JEPI AJAX Login Styles
 *
 * Minimal, theme-agnostic styles for login form and user panel.
 * Designed to be easily overridden by theme CSS.
 *
 * @package SOLID_SEO_GBM
 * @since   3.1.0
 */

/* ==========================================================================
   LOGIN PANEL CONTAINER
   ========================================================================== */

.jepi-login-panel {
    max-width: 360px;
    margin: 0 auto;
    padding: 2rem;
}

/* ==========================================================================
   LOGIN FORM
   ========================================================================== */

.jepi-login-form-wrapper {
    width: 100%;
}

.jepi-login-title {
    margin: 0 0 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    color: inherit;
}

.jepi-login-form {
    margin: 0;
}

/* Form Groups */
.jepi-form-group {
    margin-bottom: 1.25rem;
}

.jepi-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.jepi-form-group--inline {
    display: flex;
    align-items: center;
}

/* Inputs */
.jepi-input {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.jepi-input:focus {
    outline: none;
    border-color: #0077b6;
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.15);
}

.jepi-input:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

/* Checkbox */
.jepi-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
}

.jepi-checkbox-label input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    margin: 0;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.jepi-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.jepi-button:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.jepi-button--primary {
    color: #fff;
    background-color: #0077b6;
}

.jepi-button--primary:hover:not(:disabled) {
    background-color: #005f8f;
}

.jepi-button--primary:active:not(:disabled) {
    transform: translateY(1px);
}

.jepi-button--secondary {
    color: #333;
    background-color: #e9ecef;
}

.jepi-button--secondary:hover:not(:disabled) {
    background-color: #dee2e6;
}

.jepi-button--register {
    color: #0077b6;
    background-color: transparent;
    border: 2px solid #0077b6;
    margin-top: 0.75rem;
    font-size: 0.9rem;
}

.jepi-button--register:hover {
    background-color: #0077b6;
    color: #fff;
}

/* Loading State */
.jepi-button--loading {
    pointer-events: none;
}

/* Spinner */
.jepi-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: jepi-spin 0.8s linear infinite;
}

@keyframes jepi-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   MESSAGES
   ========================================================================== */

.jepi-form-message {
    display: none;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    border-radius: 4px;
}

.jepi-message--success {
    color: #0f5132;
    background-color: #d1e7dd;
    border: 1px solid #badbcc;
}

.jepi-message--error {
    color: #842029;
    background-color: #f8d7da;
    border: 1px solid #f5c2c7;
}

/* ==========================================================================
   LOGIN LINKS
   ========================================================================== */

.jepi-login-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.jepi-link {
    font-size: 0.875rem;
    color: #0077b6;
    text-decoration: none;
}

.jepi-link:hover {
    text-decoration: underline;
}
.jepi-link--muted {
    color: #6c757d;
    font-size: 0.8rem;
}

.jepi-link--muted:hover {
    color: #495057;
    text-decoration: underline;
}

.jepi-link--rss::before {
    content: "\2605\00A0";
    font-size: 0.75rem;
    color: #f26522;
}

/* ==========================================================================
   USER PANEL (LOGGED IN STATE)
   ========================================================================== */

.jepi-user-panel {
    text-align: center;
}

.jepi-user-greeting {
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.jepi-user-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 9999px;
}

.jepi-user-badge--professional {
    color: #0f5132;
    background-color: #d1e7dd;
}

/* User Navigation */
.jepi-user-nav {
    margin-bottom: 1.5rem;
}

.jepi-user-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.jepi-user-menu li {
    margin-bottom: 0.5rem;
}

.jepi-user-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    background-color: #f8f9fa;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.jepi-user-menu a:hover {
    background-color: #e9ecef;
}

/* User Actions */
.jepi-user-actions {
    margin-top: 1rem;
}

/* ==========================================================================
   HEADER LINK
   ========================================================================== */

.jepi-user-menu-link {
    display: inline-block;
    font-size: inherit;
    color: inherit;
    text-decoration: none;
}

.jepi-user-menu-link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 480px) {
    .jepi-login-panel {
        padding: 1.5rem 1rem;
    }

    .jepi-login-title {
        font-size: 1.25rem;
    }

    .jepi-button {
        padding: 1rem;
    }
}
