/* ────────────────────────────────────────────
   Pi Network Login – WordPress Plugin Styles
──────────────────────────────────────────── */

/* Container */
.pnl-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ── Primary login button ── */
.pnl-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 24px;
    background: #6B4FBB;        /* Pi Network purple */
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(107, 79, 187, 0.35);
    min-width: 220px;
    justify-content: center;
    user-select: none;
    -webkit-user-select: none;
}

.pnl-btn:hover {
    background: #5A3FA8;
    box-shadow: 0 6px 18px rgba(107, 79, 187, 0.45);
    transform: translateY(-1px);
}

.pnl-btn:active {
    background: #4D348F;
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(107, 79, 187, 0.3);
}

.pnl-btn:focus-visible {
    outline: 3px solid #9B7FE8;
    outline-offset: 3px;
}

.pnl-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* ── Status banner ── */
.pnl-status {
    width: 100%;
    max-width: 360px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    line-height: 1.4;
}

.pnl-status--info {
    background: #EEE8FF;
    color: #3B2D7A;
}

.pnl-status--success {
    background: #E6F4EA;
    color: #1E6B30;
    border: 1px solid #B7DFC1;
}

.pnl-status--error {
    background: #FDECEA;
    color: #8B1C1C;
    border: 1px solid #F5C6C6;
}

/* ── Loading state ── */
.pnl-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px 0;
}

.pnl-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(107, 79, 187, 0.2);
    border-top-color: #6B4FBB;
    border-radius: 50%;
    animation: pnl-spin 0.8s linear infinite;
}

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

.pnl-loading-text {
    font-size: 14px;
    color: #6B4FBB;
    font-weight: 500;
}

/* ── Logged-in state (shown by shortcode when already authenticated) ── */
.pnl-logged-in {
    text-align: center;
    padding: 12px 0;
}

.pnl-welcome {
    font-size: 15px;
    color: #333;
    margin: 0 0 8px;
}

.pnl-logout-link {
    font-size: 13px;
    color: #6B4FBB;
    text-decoration: none;
}

.pnl-logout-link:hover {
    text-decoration: underline;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .pnl-btn {
        width: 100%;
        font-size: 15px;
        padding: 14px 20px;
    }
    .pnl-status {
        max-width: 100%;
    }
}
