/* IM Memberships – Frontend */

.im-btn {
    display: inline-block;
    padding: 12px 28px;
    background: #1a1a2e;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
}

.im-btn:hover {
    background: #16213e;
    color: #fff;
    transform: translateY(-1px);
}

.im-btn:active { transform: translateY(0); }

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

.im-btn--secondary {
    background: transparent;
    color: #1a1a2e;
    border: 2px solid #1a1a2e;
}

.im-btn--secondary:hover {
    background: #1a1a2e;
    color: #fff;
}

/* Contenu protégé */
.im-locked {
    text-align: center;
    padding: 40px 20px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    background: #fafafa;
}

.im-lock-icon { font-size: 32px; display: block; margin-bottom: 12px; }

.im-already-member { font-style: italic; color: #555; }

/* Compte */
.im-account { max-width: 600px; }
.im-account__header { margin-bottom: 24px; }
.im-account__email { color: #666; }

.im-account__status {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 16px;
}

.im-account__status--active   { background: #d4edda; color: #155724; }
.im-account__status--past_due { background: #fff3cd; color: #856404; }
.im-account__status--canceled { background: #f8d7da; color: #721c24; }
.im-account__status--inactive { background: #e2e3e5; color: #383d41; }

.im-account__renewal { margin-bottom: 24px; color: #555; }
.im-account__actions { margin-top: 24px; }

/* IM Login */
.im-login-wrap {
    max-width: 420px;
    margin: 40px auto;
}

.im-login-box {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 36px;
}

.im-login-box h2 {
    margin: 0 0 24px;
    font-size: 22px;
    text-align: center;
}

.im-form { display: flex; flex-direction: column; gap: 16px; }

.im-form__field { display: flex; flex-direction: column; gap: 6px; }

.im-form__field label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.im-form__field input[type="text"],
.im-form__field input[type="email"],
.im-form__field input[type="password"] {
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.im-form__field input:focus {
    outline: none;
    border-color: #1a1a2e;
}

.im-form__field--inline { flex-direction: row; align-items: center; }
.im-form__field--inline label { font-weight: normal; cursor: pointer; }

.im-btn--full { width: 100%; text-align: center; margin-top: 8px; }

.im-login__links {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: #888;
}

.im-login__links a { color: #1a1a2e; }

.im-alert {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 16px;
}

.im-alert--error   { background: #f8d7da; color: #721c24; }
.im-alert--success { background: #d4edda; color: #155724; }
