/* ============================================================
   pro.lafede.immo — connexion.css
   Styles spécifiques (auto-extracted from source).
   ============================================================ */


.fede-auth-page {
    --cyan: #209C9A;
    --cyan-dark: #178786;
    --cyan-light: rgba(32,156,154,0.1);
    --noir: #1A1A1A;
    --gris: #6B6660;
    --gris-light: #9A9590;
    --white: #fff;
    --border: #E5E5E5;
    --success: #22C55E;
    --error: #DC2626;
    --radius: 14px;
    --radius-lg: 24px;
    --shadow: 0 10px 40px rgba(0,0,0,0.25);
    font-family: 'DM Sans', sans-serif;
}
.fede-auth-page * { box-sizing: border-box; }
.fede-auth-container {
    width: 100%;
    max-width: 440px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 16px;
}
.fede-auth-logo {
    text-align: center;
    padding: 12px 0;
}
.fede-auth-logo img {
    max-width: 130px;
    filter: brightness(0) invert(1);
}
.fede-auth-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.fede-auth-tabs {
    display: flex;
    background: #f8f8f8;
    padding: 8px;
    gap: 8px;
}
.fede-auth-tab {
    flex: 1;
    padding: 14px 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gris);
    background: transparent;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}
.fede-auth-tab.active {
    background: var(--white);
    color: var(--cyan);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.fede-auth-form {
    padding: 24px 20px;
    display: none;
}
.fede-auth-form.active { display: block; }
.fede-auth-field { margin-bottom: 18px; }
.fede-auth-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--noir);
    font-size: 0.9rem;
}
.fede-auth-input {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 16px;
    transition: all 0.2s ease;
    background: var(--white);
    -webkit-appearance: none;
}
.fede-auth-input:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 4px var(--cyan-light);
}
.fede-auth-input.error { border-color: var(--error); }
.fede-auth-input.valid { border-color: var(--success); }
.fede-auth-input::placeholder { color: #bbb; }
.fede-auth-password-field { position: relative; }
.fede-auth-password-field .fede-auth-input { padding-right: 54px; }
.fede-auth-toggle-pw {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gris-light);
    padding: 12px;
    border-radius: 10px;
    transition: all 0.2s;
}
.fede-auth-toggle-pw svg { width: 22px; height: 22px; display: block; }
.fede-auth-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--cyan) 0%, var(--cyan-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}
.fede-auth-btn:active { transform: scale(0.98); opacity: 0.9; }
.fede-auth-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.fede-auth-btn-link {
    background: none;
    border: none;
    color: var(--cyan);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 12px;
    cursor: pointer;
    display: block;
    text-align: center;
    margin-top: 8px;
    font-family: inherit;
}
.fede-auth-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    padding: 4px 0;
}
.fede-auth-checkbox input {
    width: 22px;
    height: 22px;
    accent-color: var(--cyan);
    margin-top: 1px;
    flex-shrink: 0;
}
.fede-auth-checkbox label {
    font-size: 0.85rem;
    color: var(--gris);
    line-height: 1.5;
}
.fede-auth-checkbox label a { color: var(--cyan); text-decoration: underline; }
.fede-auth-msg {
    padding: 14px 16px;
    border-radius: var(--radius);
    margin-bottom: 18px;
    font-size: 0.9rem;
    display: none;
    line-height: 1.5;
}
.fede-auth-msg.show { display: block; }
.fede-auth-msg.error { background: rgba(220,38,38,0.1); color: var(--error); }
.fede-auth-msg.success { background: rgba(34,197,94,0.1); color: var(--success); }
.fede-auth-admin-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    background: rgba(212,175,55,0.12);
    border-radius: var(--radius);
    margin-bottom: 18px;
    font-size: 0.85rem;
    color: #8B7500;
    font-weight: 500;
}
.fede-auth-admin-info.hidden { display: none; }
.fede-auth-pw-reqs {
    background: #f9f9f9;
    border-radius: var(--radius);
    padding: 16px;
    margin-top: 12px;
}
.fede-auth-pw-reqs p { font-weight: 600; margin-bottom: 12px; color: var(--noir); font-size: 0.85rem; }
.fede-auth-req {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: var(--gris-light);
    font-size: 0.8rem;
}
.fede-auth-req.valid { color: var(--success); }
.fede-auth-req .icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    flex-shrink: 0;
}
.fede-auth-req.valid .icon { background: var(--success); color: white; }
.fede-auth-strength-bar { height: 6px; background: #eee; border-radius: 3px; margin-top: 12px; overflow: hidden; }
.fede-auth-strength-fill { height: 100%; width: 0%; transition: all 0.3s; border-radius: 3px; }
.fede-auth-strength-fill.weak { width: 25%; background: #EF4444; }
.fede-auth-strength-fill.fair { width: 50%; background: #F59E0B; }
.fede-auth-strength-fill.good { width: 75%; background: #3B82F6; }
.fede-auth-strength-fill.strong { width: 100%; background: var(--success); }
.fede-auth-spinner {
    width: 20px; height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: fedeAuthSpin 0.7s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
}
@keyframes fedeAuthSpin { to { transform: rotate(360deg); } }
.fede-auth-footer {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}
.fede-auth-footer p { color: var(--gris-light); font-size: 0.75rem; margin-bottom: 12px; }
.fede-auth-footer-links { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.fede-auth-footer-links a { color: var(--cyan); font-size: 0.7rem; text-decoration: none; }
.fede-auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
/* Connected state */
.fede-auth-connected { text-align: center; padding: 40px 20px; }
.fede-auth-connected-avatar {
    width: 70px; height: 70px; border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan), var(--cyan-dark));
    margin: 0 auto 20px;
    display: flex; align-items: center; justify-content: center;
}
.fede-auth-connected-avatar span { color: #fff; font-size: 28px; font-weight: 700; }
.fede-auth-connected h2 { margin: 0 0 8px; color: var(--noir); font-size: 22px; }
.fede-auth-connected p { color: var(--gris); margin: 0 0 30px; font-size: 15px; }
.fede-auth-connected-btn {
    display: inline-block; padding: 12px 32px;
    background: linear-gradient(135deg, var(--cyan), var(--cyan-dark));
    color: #fff; border-radius: 12px; text-decoration: none; font-weight: 600; font-size: 15px;
}
.fede-auth-connected-logout {
    background: none; border: none; color: var(--error);
    cursor: pointer; font-size: 14px; margin-top: 15px; padding: 8px 16px; font-weight: 500; font-family: inherit;
}
/* Modal */
.fede-auth-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.7);
    display: none;
    align-items: flex-end;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}
.fede-auth-modal-overlay.show { display: flex; }
.fede-auth-modal {
    background: var(--white);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    width: 100%;
    max-width: 500px;
    padding: 24px 20px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}
.fede-auth-modal-overlay.show .fede-auth-modal { transform: translateY(0); }
.fede-auth-modal-handle { width: 40px; height: 5px; background: #ddd; border-radius: 3px; margin: 0 auto 20px; }
.fede-auth-modal-title { font-size: 1.2rem; font-weight: 700; color: var(--noir); margin-bottom: 8px; display: flex; align-items: center; gap: 12px; }
.fede-auth-modal-title svg { width: 26px; height: 26px; stroke: var(--cyan); flex-shrink: 0; }
.fede-auth-modal-text { color: var(--gris); font-size: 0.9rem; margin-bottom: 24px; line-height: 1.6; }
@media (min-width: 480px) {
    .fede-auth-modal { border-radius: var(--radius-lg); margin: 20px; }
    .fede-auth-modal-overlay { align-items: center; padding: 20px; }
}
@media (max-width: 380px) { .fede-auth-row { grid-template-columns: 1fr; } }
