/* MultiImporta — Branded Password Page */

.mip-pw-wrap {
    min-height: 100vh;
    background: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.mip-pw-card {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 6px 32px rgba(0,0,0,0.12);
    width: 100%;
    max-width: 440px;
    overflow: hidden;
}

/* ── Header ── */
.mip-pw-header {
    background: linear-gradient(150deg, #0a1e4d 0%, #1a4fa0 55%, #1e6fd9 100%);
    padding: 40px 32px 32px;
    text-align: center;
}

.mip-pw-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.12);
    border: 2px solid rgba(255,255,255,0.22);
    border-radius: 50%;
    width: 84px;
    height: 84px;
    margin-bottom: 16px;
}

.mip-pw-logo {
    width: 56px;
    height: 56px;
    border-radius: 4px;
    display: block;
}

.mip-pw-site-name {
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 6px;
    letter-spacing: -0.3px;
}

.mip-pw-subtitle {
    color: rgba(255,255,255,0.65);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    margin: 0;
}

/* ── Accent bar ── */
.mip-pw-accent-bar {
    height: 4px;
    background: linear-gradient(90deg, #f97316, #fb923c, #fbbf24);
}

/* ── Body ── */
.mip-pw-body {
    padding: 32px 36px 28px;
}

.mip-pw-intro h2 {
    font-size: 20px;
    font-weight: 700;
    color: #0a1e4d;
    margin: 0 0 10px;
}

.mip-pw-intro p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 24px;
}

/* ── Alert ── */
.mip-pw-alert {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid #ef4444;
    border-radius: 0 8px 8px 0;
    padding: 12px 16px;
    font-size: 13px;
    color: #991b1b;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* ── Form fields ── */
.mip-pw-field {
    margin-bottom: 20px;
}

.mip-pw-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.mip-pw-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.mip-pw-input-wrap input[type="password"],
.mip-pw-input-wrap input[type="text"] {
    width: 100%;
    padding: 11px 44px 11px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    color: #1f2937;
    background: #fafafa;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.mip-pw-input-wrap input:focus {
    border-color: #1a4fa0;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26,79,160,0.10);
}

.mip-pw-toggle {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    line-height: 1;
    color: #9ca3af;
    transition: color 0.15s;
}

.mip-pw-toggle:hover { color: #1a4fa0; }

/* ── Strength bar ── */
.mip-pw-strength {
    height: 4px;
    background: #f3f4f6;
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.mip-pw-strength-fill {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: width 0.3s, background 0.3s;
}

.mip-pw-strength-label {
    font-size: 11px;
    font-weight: 600;
    margin-top: 4px;
    display: block;
}

.mip-pw-match {
    font-size: 12px;
    font-weight: 600;
    margin-top: 6px;
    display: block;
}

/* ── CTA button ── */
.mip-pw-btn {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #0a1e4d 0%, #1a4fa0 50%, #1e6fd9 100%);
    color: #ffffff !important;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 24px;
    border-radius: 9px;
    border: none;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 4px 16px rgba(26,79,160,0.35);
    transition: opacity 0.2s, transform 0.15s;
    box-sizing: border-box;
    letter-spacing: 0.2px;
    margin-top: 8px;
}

.mip-pw-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    text-decoration: none !important;
}

/* ── Success block ── */
.mip-pw-success {
    text-align: center;
    padding: 8px 0 16px;
}

.mip-pw-success-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.mip-pw-success h2 {
    font-size: 20px;
    font-weight: 700;
    color: #0a1e4d;
    margin: 0 0 10px;
}

.mip-pw-success p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.7;
    margin: 0 0 24px;
}

/* ── Error block ── */
.mip-pw-error-block {
    text-align: center;
    padding: 16px 0;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.7;
}

.mip-pw-error-block p { margin: 0 0 8px; }

/* ── Footer ── */
.mip-pw-footer {
    background: #0a1e4d;
    padding: 16px 32px;
    text-align: center;
}

.mip-pw-footer p {
    color: rgba(255,255,255,0.4);
    font-size: 11px;
    margin: 0;
    line-height: 1.6;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .mip-pw-wrap { padding: 0; align-items: flex-start; }
    .mip-pw-card { border-radius: 0; min-height: 100vh; }
    .mip-pw-body { padding: 24px 24px 20px; }
    .mip-pw-header { padding: 32px 24px 28px; }
}

/* ── Username box ── */
.mip-pw-username-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #f0f6ff 0%, #e8f0fe 100%);
    border: 2px solid #c3d6f9;
    border-radius: 10px;
    padding: 16px 20px 14px;
    margin-bottom: 24px;
    text-align: center;
}

.mip-pw-username-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #1a4fa0;
    margin-bottom: 6px;
}

.mip-pw-username-value {
    font-size: 22px;
    font-weight: 800;
    color: #0a1e4d;
    letter-spacing: -0.3px;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    background: rgba(255,255,255,0.7);
    padding: 6px 18px;
    border-radius: 6px;
    border: 1px solid #c3d6f9;
    margin-bottom: 8px;
}

.mip-pw-username-hint {
    font-size: 11px;
    color: #6b7280;
    font-style: italic;
}
