/* =========================
   BASE
========================= */
* { box-sizing: border-box; }

html, body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f7fb;
    color: #333;
}

/* =========================
   BACKGROUND LOGO
========================= */
.bg-logo {
    position: fixed;
    inset: 0;
    background: url('../images/logo-dansmapoche.png') no-repeat center;
    background-size: 60%;
    opacity: 0.06;
    z-index: 0;
}

@media (max-width: 600px) {
    .bg-logo { background-size: 85%; }
}

/* =========================
   LAYOUT
========================= */
.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.dashboard .container {
    display: block;
    min-height: auto;
}

.box {
    background: #fff;
    padding: 32px;
    border-radius: 20px;
    width: 100%;
    max-width: 380px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* =========================
   TITRES
========================= */
.logo-main {
    width: 200px;
    margin-bottom: 10px;
}

.app-title {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 1px;
}

.app-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

/* =========================
   FORM
========================= */
input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 12px;
    border: 1px solid #ccc;
}

.password-wrapper { position: relative; }

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

/* =========================
   BUTTONS
========================= */
.btn-primary {
    width: 100%;
    padding: 12px;
    border-radius: 14px;
    background: #fbc02d;
    border: none;
    font-weight: bold;
}

.btn-secondary {
    display: block;
    margin-top: 14px;
    padding: 10px;
    border-radius: 14px;
    background: #e3ecfa;
    text-decoration: none;
    font-weight: bold;
    color: #1e88e5;
}

/* =========================
   ERRORS
========================= */
.error {
    background: #ffe0e0;
    color: #900;
    padding: 10px;
    border-radius: 12px;
    margin-bottom: 10px;
    font-weight: bold;
}




/* Conteneur iframe */
.iframe-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 12px;
}

/* iframe HelloAsso */
.iframe-wrapper iframe {
    width: 100%;
    height: 85vh;              /* ← clé */
    min-height: 500px;
    border: none;
    display: block;
}

@media (max-width: 768px) {
    .iframe-wrapper iframe {
        height: 90vh;
        min-height: 420px;
    }
}

/* Checkbox "Se souvenir de moi" sur une ligne */
.checkbox-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  cursor: pointer;
}

.checkbox-inline input[type="checkbox"] {
  margin: 0;
}
