/* Maho Meteo – Custom Auth Pages (Tabler Style) */

/* ─── Full-page overlay ─────────────────────────────────── */
.maho-auth-page {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #f0f2f5;
    display: flex;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    overflow-y: auto;
}

/* ─── Left panel (form area) ────────────────────────────── */
.maho-auth-panel {
    flex: 0 0 520px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 48px 56px;
    background: #f0f2f5;
    box-sizing: border-box;
    min-height: 100%;
}

/* ─── Right panel (illustration) ───────────────────────── */
.maho-auth-illustration {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f2f5;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

@media (max-width: 800px) {
    .maho-auth-illustration { display: none; }
    .maho-auth-panel {
        flex: 1;
        padding: 32px 24px;
    }
}

/* ─── Logo ──────────────────────────────────────────────── */
.maho-auth-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 28px;
    align-self: flex-start;
    max-width: 400px;
    width: 100%;
}
.maho-auth-logo-icon {
    width: 36px;
    height: 36px;
    background: #206bc4;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.maho-auth-logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
}
.maho-auth-logo-text {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -.01em;
}

/* ─── Card ──────────────────────────────────────────────── */
.maho-auth-card {
    width: 100%;
    max-width: 400px;
    background: #ffffff;
    border-radius: 8px;
    padding: 28px 32px;
    box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 20px rgba(0,0,0,.08);
}

.maho-auth-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px 0;
    text-align: center;
}

.maho-auth-card-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 24px 0;
    text-align: center;
}

/* ─── Notices ───────────────────────────────────────────── */
.maho-auth-notice {
    padding: 11px 14px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 18px;
    line-height: 1.4;
}
.maho-auth-notice.error   { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.maho-auth-notice.success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.maho-auth-notice.info    { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }

/* ─── Form groups ───────────────────────────────────────── */
.maho-auth-group {
    margin-bottom: 16px;
}

.maho-auth-label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
}

.maho-auth-label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    display: block;
    margin-bottom: 6px;
}

.maho-auth-label-link {
    font-size: 13px;
    color: #206bc4;
    text-decoration: none;
    font-weight: 400;
}
.maho-auth-label-link:hover { text-decoration: underline; }

/* ─── Inputs ────────────────────────────────────────────── */
.maho-auth-input-wrap {
    position: relative;
}

.maho-auth-input {
    width: 100%;
    padding: 9px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
    color: #111827;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
    outline: none;
    line-height: 1.5;
    -webkit-appearance: none;
}

.maho-auth-input:focus {
    border-color: #206bc4;
    box-shadow: 0 0 0 3px rgba(32,107,196,.15);
}

.maho-auth-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.maho-auth-input.has-eye {
    padding-right: 44px;
}

/* ─── Password eye toggle ───────────────────────────────── */
.maho-auth-eye {
    position: absolute;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 2px;
    display: flex;
    align-items: center;
    line-height: 0;
    transition: color .15s;
}
.maho-auth-eye:hover { color: #374151; }

/* ─── Remember me ───────────────────────────────────────── */
.maho-auth-check-row {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 22px;
}
.maho-auth-check-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #206bc4;
    cursor: pointer;
    flex-shrink: 0;
}
.maho-auth-check-label {
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    user-select: none;
}

/* ─── Submit button ─────────────────────────────────────── */
.maho-auth-btn {
    width: 100%;
    padding: 10px 18px;
    background: #206bc4;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
    letter-spacing: .01em;
    line-height: 1.5;
}
.maho-auth-btn:hover   { background: #1a56a0; }
.maho-auth-btn:active  { background: #154a8e; }
.maho-auth-btn:disabled {
    opacity: .65;
    cursor: not-allowed;
}

/* ─── Footer link ───────────────────────────────────────── */
.maho-auth-footer {
    text-align: center;
    margin-top: 22px;
    font-size: 14px;
    color: #64748b;
    max-width: 400px;
    width: 100%;
}
.maho-auth-footer a {
    color: #206bc4;
    text-decoration: none;
    font-weight: 500;
}
.maho-auth-footer a:hover { text-decoration: underline; }

/* ─── Illustration blob bg ──────────────────────────────── */
.maho-auth-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: .35;
}
