/* ═══════════════════════════════════════════════════════════
   Auto Connect RS — Base Styles
   Structure partagée par tous les thèmes
   ═══════════════════════════════════════════════════════════ */

/* ── Overlay (popup mode) ───────────────────────────────── */
.acrs-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .3s ease;
}
.acrs-overlay.acrs-hidden { display: none; }

.acrs-overlay-bg {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* ── Page mode wrapper ─────────────────────────────────── */
.acrs-page-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 40px 20px;
    background-size: cover;
    background-position: center;
}

/* ── Modal / Card ──────────────────────────────────────── */
.acrs-modal,
.acrs-page-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    padding: 40px 36px 32px;
    border-radius: 20px;
    overflow: hidden;
    box-sizing: border-box;
    animation: acrsFadeIn .4s ease;
}
.acrs-page-card { max-width: 480px; }

@keyframes acrsFadeIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)   scale(1);    }
}

/* ── Close button ──────────────────────────────────────── */
.acrs-close-btn {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity .2s;
    padding: 0;
}
.acrs-close-btn:hover { opacity: 1; }

/* ── Header / Logo ─────────────────────────────────────── */
.acrs-header {
    text-align: center;
    margin-bottom: 24px;
}
.acrs-logo {
    max-width: 100px;
    max-height: 100px;
    border-radius: 12px;
}
.acrs-logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ── Title ─────────────────────────────────────────────── */
.acrs-title {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 24px;
}

/* ── Form fields ───────────────────────────────────────── */
.acrs-field {
    margin-bottom: 18px;
}
.acrs-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}
.acrs-input {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    border-radius: 10px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.acrs-input:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.15);
}

/* ── WordPress native login form overrides ─────────────── */
.acrs-panel-login .login-username,
.acrs-panel-login .login-password,
.acrs-panel-login .login-remember {
    margin-bottom: 16px;
}
.acrs-panel-login label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}
.acrs-panel-login input[type="text"],
.acrs-panel-login input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    border-radius: 10px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.acrs-panel-login input[type="text"]:focus,
.acrs-panel-login input[type="password"]:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.15);
}
.acrs-panel-login .login-remember label {
    display: inline;
    font-weight: 400;
}
.acrs-panel-login .login-remember input[type="checkbox"] {
    margin-right: 6px;
}
.acrs-panel-login #wp-submit,
.acrs-panel-login input[type="submit"] {
    display: block;
    width: 100%;
    padding: 13px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: opacity .2s, transform .1s;
}
.acrs-panel-login #wp-submit:hover,
.acrs-panel-login input[type="submit"]:hover {
    opacity: 0.9;
}
.acrs-panel-login #wp-submit:active,
.acrs-panel-login input[type="submit"]:active {
    transform: scale(0.98);
}

/* ── Buttons ───────────────────────────────────────────── */
.acrs-btn {
    display: block;
    width: 100%;
    padding: 13px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-sizing: border-box;
    transition: opacity .2s, transform .1s;
    text-align: center;
}
.acrs-btn:hover { opacity: 0.9; }
.acrs-btn:active { transform: scale(0.98); }
.acrs-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── Description / notice ──────────────────────────────── */
.acrs-desc {
    font-size: 13px;
    opacity: 0.8;
    margin: 0 0 18px;
    line-height: 1.5;
}
.acrs-notice {
    text-align: center;
    font-size: 14px;
    opacity: 0.7;
}

/* ── Feedback messages ─────────────────────────────────── */
.acrs-feedback {
    margin-top: 14px;
    padding: 0;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}
.acrs-feedback.acrs-msg-ok { color: #00a32a; }
.acrs-feedback.acrs-msg-err { color: #d63638; }
.acrs-feedback.acrs-loading::after {
    content: '';
    display: inline-block;
    width: 16px; height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: acrsSpin .6s linear infinite;
    vertical-align: middle;
    margin-left: 6px;
}

@keyframes acrsSpin {
    to { transform: rotate(360deg); }
}

/* ── Meta links (bottom of each panel) ─────────────────── */
.acrs-meta-links {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
    padding-top: 16px;
    font-size: 13px;
}
.acrs-meta-links a {
    text-decoration: none;
    font-weight: 500;
    transition: opacity .2s;
}
.acrs-meta-links a:hover { opacity: 0.7; }

/* ── Panel switching ───────────────────────────────────── */
.acrs-panel {
    transition: opacity .25s ease;
}
.acrs-hidden {
    display: none !important;
}
