/* ═══════════════════════════════════════════════════════════════
   Invoice Matcher — Login page (Design C)
═══════════════════════════════════════════════════════════════ */

.im-login-body {
    min-height: 100vh;
    background: linear-gradient(135deg, #e0e7ff 0%, #f0f4ff 45%, #e0f2fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Decorative blobs */
.im-login-bg { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.im-deco {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.55;
    animation: imFloat 9s ease-in-out infinite;
}
.im-deco1 { width: 420px; height: 420px; background: rgba(99,102,241,0.18); top: -120px; left: -100px; animation-delay: 0s; }
.im-deco2 { width: 350px; height: 350px; background: rgba(14,165,233,0.15); bottom: -80px; right: -80px; animation-delay: 3.5s; }
.im-deco3 { width: 260px; height: 260px; background: rgba(167,139,250,0.14); top: 45%; left: 55%; animation-delay: 7s; }

@keyframes imFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%       { transform: translate(20px, -25px) scale(1.06); }
}

/* Language picker */
.im-login-lang {
    position: fixed;
    top: 18px; right: 20px;
    z-index: 200;
}

/* Main wrapper */
.im-login-main {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* Card */
.im-login-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 22px;
    padding: 44px 40px;
    box-shadow:
        0 4px 6px rgba(0,0,0,0.04),
        0 20px 60px rgba(99,102,241,0.14),
        0 0 0 1px rgba(99,102,241,0.08);
}

/* Logo section */
.im-login-logo { text-align: center; margin-bottom: 28px; }
.im-login-logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px; height: 62px;
    border-radius: 18px;
    background: linear-gradient(135deg, #6366f1, #0ea5e9);
    margin-bottom: 14px;
    box-shadow: 0 8px 20px rgba(99,102,241,0.32);
}
.im-login-logo-icon i { font-size: 28px; color: #fff; }
.im-login-logo h1 { font-size: 21px; font-weight: 800; color: #1e293b; margin: 0 0 4px; }
.im-login-logo p  { font-size: 13px; color: #94a3b8; margin: 0; }

/* Form fields */
.im-login-group { margin-bottom: 16px; }
.im-login-label {
    display: block;
    font-size: 13px; font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
}
.im-login-input-wrap { position: relative; }
.im-login-input {
    width: 100%;
    padding: 11px 14px 11px 40px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    color: #1e293b;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.im-login-input::placeholder { color: #cbd5e1; }
.im-login-input:focus {
    border-color: #6366f1;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}
.im-login-input.is-invalid { border-color: #ef4444; }
.im-login-input-icon {
    position: absolute;
    left: 13px; top: 50%;
    transform: translateY(-50%);
    color: #94a3b8; font-size: 15px;
    pointer-events: none;
}
.im-login-eye {
    position: absolute;
    right: 12px; top: 50%;
    transform: translateY(-50%);
    color: #94a3b8; font-size: 15px;
    cursor: pointer; background: none; border: none; padding: 0;
    transition: color 0.15s;
}
.im-login-eye:hover { color: #6366f1; }
.im-login-input.has-eye { padding-right: 40px; }

/* Validation */
.im-login-error {
    font-size: 12px;
    color: #ef4444;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Alert */
.im-login-alert {
    background: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 10px 14px;
    color: #dc2626;
    font-size: 13px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Submit button */
.im-login-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #6366f1, #0ea5e9);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(99,102,241,0.35);
    transition: opacity 0.15s, transform 0.12s, box-shadow 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
}
.im-login-btn:hover { opacity: 0.92; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(99,102,241,0.4); }
.im-login-btn:active { transform: translateY(0); }

/* Forgot link */
.im-forgot-link {
    display: block;
    text-align: center;
    margin-top: 14px;
    font-size: 13px;
    color: #6366f1;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s;
}
.im-forgot-link:hover { color: #4f46e5; text-decoration: underline; }

/* Divider */
.im-login-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 20px 0;
}

/* Remember me */
.im-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 13px;
    color: #64748b;
    cursor: pointer;
}
.im-remember input[type="checkbox"] { accent-color: #6366f1; width: 15px; height: 15px; }
